Metadata-Version: 2.4
Name: passport-photo-specs-data
Version: 1.0.1
Summary: Official passport & visa photo specifications by country (JSON/CSV), sourced from government pages
Author: PixID
License: MIT (code); CC-BY-4.0 (data)
Project-URL: Homepage, https://pixid.studio
Project-URL: Repository, https://github.com/marfa77/passport-photo-specs
Project-URL: Documentation, https://marfa77.github.io/passport-photo-specs/
Project-URL: DOI, https://doi.org/10.5281/zenodo.23321885
Keywords: passport photo,visa photo,photo requirements,biometric photo,ICAO,open data
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE-DATA
Dynamic: license-file

# passport-photo-specs-data

[![PyPI](https://img.shields.io/pypi/v/passport-photo-specs-data.svg)](https://pypi.org/project/passport-photo-specs-data/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.23321885.svg)](https://doi.org/10.5281/zenodo.23321885)

Official passport & visa photo specifications by country (JSON/CSV), sourced from government pages

Python package bundling the open dataset **passport-photo-specs: Passport & visa photo specifications** from
[github.com/marfa77/passport-photo-specs](https://github.com/marfa77/passport-photo-specs) with a tiny pure-stdlib API (Python >= 3.8).

- Product: [https://pixid.studio](https://pixid.studio)
- Dataset DOI: [10.5281/zenodo.23321885](https://doi.org/10.5281/zenodo.23321885)
- Documentation: https://marfa77.github.io/passport-photo-specs/
- Data source: Official government passport/visa photo pages (source URLs per record in the data).

## Install

```
pip install passport-photo-specs-data
```

## Usage

```python
import passport_photo_specs_data

passport_photo_specs_data.files()        # bundled files: `specs.csv`, `specs.json`
data = passport_photo_specs_data.load()  # parsed specs.json
rows = passport_photo_specs_data.records()
passport_photo_specs_data.get("us-passport")
passport_photo_specs_data.load("specs.csv")  # CSV as list of dicts
```

## Licence

- Code: MIT (see `LICENSE`).
- Data: Creative Commons Attribution 4.0 International (CC BY 4.0) (see `LICENSE-DATA`). Attribution: "passport-photo-specs by PixID (https://pixid.studio)".

## Citation

Please cite the dataset DOI: https://doi.org/10.5281/zenodo.23321885
