cvfe package#
Subpackages#
- cvfe.api package
- cvfe.configs package
- cvfe.data package
- Submodules
- cvfe.data.constant module
CANADA_5257E_KEY_ABBREVIATION
CANADA_5645E_KEY_ABBREVIATION
CANADA_5257E_VALUE_ABBREVIATION
CANADA_5257E_DROP_COLUMNS
CANADA_5645E_DROP_COLUMNS
DocTypes
CanadaCutoffTerms
CanadaFillna
CanadaFillna.COUNTRY_CODE_5257E
CanadaFillna.VISA_TYPE_5257E
CanadaFillna.PLACE_BIRTH_CITY_5257E
CanadaFillna.COUNTRY_5257E
CanadaFillna.CITIZENSHIP_5257E
CanadaFillna.RESIDENCY_STATUS_5257E
CanadaFillna.OTHER_DESCRIPTION_INDICATOR_5257E
CanadaFillna.PREVIOUS_COUNTRY_5257E
CanadaFillna.COUNTRY_WHERE_APPLYING_5257E
CanadaFillna.MARRIAGE_TYPE_5257E
CanadaFillna.PASSPORT_COUNTRY_5257E
CanadaFillna.NATIVE_LANG_5257E
CanadaFillna.LANGUAGES_ABLE_TO_COMMUNICATE_5257E
CanadaFillna.ID_COUNTRY_5257E
CanadaFillna.PURPOSE_OF_VISIT_5257E
CanadaFillna.CONTACT_TYPE_5257E
CanadaFillna.OCCUPATION_5257E
CanadaFillna.INDICATOR_FIELD_5257E
CanadaFillna.VISA_APPLICATION_TYPE_5645E
CanadaFillna.CHILD_MARRIAGE_STATUS_5645E
CanadaFillna.CHILD_RELATION_5645E
CanadaFillna.VISA_RESULT
DATEUTIL_DEFAULT_DATETIME
T0
CustomNamingEnum
CanadaMarriageStatus
CanadaContactRelation
CanadaResidencyStatus
Sex
- cvfe.data.functional module
- cvfe.data.pdf module
- cvfe.data.preprocessor module
- Module contents
Submodules#
cvfe.main module#
Module contents#
- cvfe.adobe_xfa_processor(src_dir)#
Converts a directory of 5257E and 5645E Canada visa forms to python dict
Note
The structure of the src_dir must be:
- some/path/
- └── src_dir
├── 5257.pdf └── 5645.pdf
Note
For more information about the details of implementation, please see other modules such as:
cvfe.api
: for API requests if using onecvfe.configs
: Contains external datacvfe.data
: contains all reading/preprocessing and so on
Note
If you are using the API endpoints, you can find this function on
/cvfe/v1/convert/adobe_xfa
- Parameters:
src_dir (Path) – The path to the directory containing a set of 5257E and 5645E forms. This forms must be the official forms (Adobe protected). Also, the files must contain
5257
or5645
in their name to be recognized.- Returns:
A dictionary where keys are the fields on the form and values are the values non-transformed from the fields of the forms.
- Return type: