├── .github ├── issue_template.md ├── pull_request_template.md ├── stale.yml └── workflows │ └── general.yml ├── .gitignore ├── LEAD.md ├── LICENSE.md ├── MANIFEST.in ├── Makefile ├── README.md ├── data ├── bad_json.json ├── base_and_tabular_registry.json ├── chunk1.csv ├── chunk2-with-headers.csv ├── chunk2.csv ├── chunk3.csv ├── cities.tsv ├── csv_dialect.json ├── data-package.json ├── data-resource.json ├── data.csv ├── data.csvformat ├── data_with_accents.csv ├── datapackage-compression │ ├── datapackage.json │ ├── explicit.csv.gz │ ├── explicit.csv.zip │ ├── implicit-gz.csv │ └── implicit-zip.csv ├── datapackage-groups │ ├── cars-2016.csv │ ├── cars-2017.csv │ ├── cars-2018.csv │ ├── cars-2018.csv.zip │ ├── cars.schema.json │ └── datapackage.json ├── datapackage │ ├── data.csv │ └── datapackage.json ├── datapackage_with_dereferencing.json ├── datapackage_with_foo.txt_resource.json ├── dialect.csv ├── dialect.json ├── empty.csv ├── empty_array.json ├── empty_datapackage.json ├── empty_registry.json ├── empty_schema.json ├── foo.txt ├── foo_newline_bar.txt ├── image.gif ├── not_a_json ├── package-invalid.zip ├── package.json ├── package.zip ├── package_dialect_no_header.csv ├── package_dialect_no_header.json ├── registry_with_notajson_profile.json ├── resource-with-dereferencing.json ├── resource.json ├── resource_data.csv ├── resource_schema.json ├── resource_with_dereferencing.json ├── schema-simple.json ├── table.csv ├── table_schema.json ├── tabular-data-package.json ├── unicode.txt └── unicode_registry.json ├── datapackage ├── VERSION ├── __init__.py ├── __main__.py ├── cli.py ├── config.py ├── exceptions.py ├── group.py ├── helpers.py ├── infer.py ├── package.py ├── profile.py ├── profiles │ ├── data-package.json │ ├── data-resource.json │ ├── fiscal-data-package.json │ ├── registry.json │ ├── tabular-data-package.json │ └── tabular-data-resource.json ├── pushpull.py ├── registry.py ├── resource.py └── validate.py ├── examples ├── __init__.py ├── package.py └── resource.py ├── pylama.ini ├── pytest.ini ├── setup.cfg ├── setup.py └── tests ├── __init__.py ├── conftest.py ├── test_cli.py ├── test_helpers.py ├── test_infer.py ├── test_package.py ├── test_profile.py ├── test_pushpull.py ├── test_registry.py ├── test_resource.py └── test_validate.py /.github/issue_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/.github/issue_template.md -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/workflows/general.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/.github/workflows/general.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/.gitignore -------------------------------------------------------------------------------- /LEAD.md: -------------------------------------------------------------------------------- 1 | pwalsh 2 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/LICENSE.md -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/README.md -------------------------------------------------------------------------------- /data/bad_json.json: -------------------------------------------------------------------------------- 1 | { 2 | 'json': 'bad', 3 | } 4 | -------------------------------------------------------------------------------- /data/base_and_tabular_registry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/base_and_tabular_registry.json -------------------------------------------------------------------------------- /data/chunk1.csv: -------------------------------------------------------------------------------- 1 | id,name 2 | 1,english 3 | -------------------------------------------------------------------------------- /data/chunk2-with-headers.csv: -------------------------------------------------------------------------------- 1 | id,name 2 | 2,中国人 3 | -------------------------------------------------------------------------------- /data/chunk2.csv: -------------------------------------------------------------------------------- 1 | 2,中国人 2 | -------------------------------------------------------------------------------- /data/chunk3.csv: -------------------------------------------------------------------------------- 1 | 3,german 2 | -------------------------------------------------------------------------------- /data/cities.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/cities.tsv -------------------------------------------------------------------------------- /data/csv_dialect.json: -------------------------------------------------------------------------------- 1 | {"delimiter": ","} 2 | -------------------------------------------------------------------------------- /data/data-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "profile": "data-package" 3 | } 4 | -------------------------------------------------------------------------------- /data/data-resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/data-resource.json -------------------------------------------------------------------------------- /data/data.csv: -------------------------------------------------------------------------------- 1 | city,location 2 | london,"51.50,-0.11" 3 | paris,"48.85,2.30" 4 | rome,N/A 5 | -------------------------------------------------------------------------------- /data/data.csvformat: -------------------------------------------------------------------------------- 1 | city,population 2 | london,8787892 3 | paris,2244000 4 | rome,2877215 5 | -------------------------------------------------------------------------------- /data/data_with_accents.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/data_with_accents.csv -------------------------------------------------------------------------------- /data/datapackage-compression/datapackage.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-compression/datapackage.json -------------------------------------------------------------------------------- /data/datapackage-compression/explicit.csv.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-compression/explicit.csv.gz -------------------------------------------------------------------------------- /data/datapackage-compression/explicit.csv.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-compression/explicit.csv.zip -------------------------------------------------------------------------------- /data/datapackage-compression/implicit-gz.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-compression/implicit-gz.csv -------------------------------------------------------------------------------- /data/datapackage-compression/implicit-zip.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-compression/implicit-zip.csv -------------------------------------------------------------------------------- /data/datapackage-groups/cars-2016.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-groups/cars-2016.csv -------------------------------------------------------------------------------- /data/datapackage-groups/cars-2017.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-groups/cars-2017.csv -------------------------------------------------------------------------------- /data/datapackage-groups/cars-2018.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-groups/cars-2018.csv -------------------------------------------------------------------------------- /data/datapackage-groups/cars-2018.csv.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-groups/cars-2018.csv.zip -------------------------------------------------------------------------------- /data/datapackage-groups/cars.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-groups/cars.schema.json -------------------------------------------------------------------------------- /data/datapackage-groups/datapackage.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage-groups/datapackage.json -------------------------------------------------------------------------------- /data/datapackage/data.csv: -------------------------------------------------------------------------------- 1 | id,city 2 | 1,London 3 | 2,|Paris| 4 | -------------------------------------------------------------------------------- /data/datapackage/datapackage.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage/datapackage.json -------------------------------------------------------------------------------- /data/datapackage_with_dereferencing.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage_with_dereferencing.json -------------------------------------------------------------------------------- /data/datapackage_with_foo.txt_resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/datapackage_with_foo.txt_resource.json -------------------------------------------------------------------------------- /data/dialect.csv: -------------------------------------------------------------------------------- 1 | id|name 2 | 1|#english# 3 | 2| -|## 4 | -------------------------------------------------------------------------------- /data/dialect.json: -------------------------------------------------------------------------------- 1 | { 2 | "delimiter": ";" 3 | } 4 | -------------------------------------------------------------------------------- /data/empty.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/empty_array.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /data/empty_datapackage.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /data/empty_registry.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /data/empty_schema.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /data/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /data/foo_newline_bar.txt: -------------------------------------------------------------------------------- 1 | foo 2 | bar 3 | -------------------------------------------------------------------------------- /data/image.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/image.gif -------------------------------------------------------------------------------- /data/not_a_json: -------------------------------------------------------------------------------- 1 | I'm not a JSON 2 | -------------------------------------------------------------------------------- /data/package-invalid.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/package-invalid.zip -------------------------------------------------------------------------------- /data/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/package.json -------------------------------------------------------------------------------- /data/package.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/package.zip -------------------------------------------------------------------------------- /data/package_dialect_no_header.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/package_dialect_no_header.csv -------------------------------------------------------------------------------- /data/package_dialect_no_header.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/package_dialect_no_header.json -------------------------------------------------------------------------------- /data/registry_with_notajson_profile.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/registry_with_notajson_profile.json -------------------------------------------------------------------------------- /data/resource-with-dereferencing.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/resource-with-dereferencing.json -------------------------------------------------------------------------------- /data/resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/resource.json -------------------------------------------------------------------------------- /data/resource_data.csv: -------------------------------------------------------------------------------- 1 | id,name 2 | 1,english 3 | 2,中国人 4 | -------------------------------------------------------------------------------- /data/resource_schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/resource_schema.json -------------------------------------------------------------------------------- /data/resource_with_dereferencing.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/resource_with_dereferencing.json -------------------------------------------------------------------------------- /data/schema-simple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/schema-simple.json -------------------------------------------------------------------------------- /data/table.csv: -------------------------------------------------------------------------------- 1 | id,name 2 | 1,english 3 | 2,中国人 4 | -------------------------------------------------------------------------------- /data/table_schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/table_schema.json -------------------------------------------------------------------------------- /data/tabular-data-package.json: -------------------------------------------------------------------------------- 1 | { 2 | "profile": "tabular-data-package" 3 | } 4 | -------------------------------------------------------------------------------- /data/unicode.txt: -------------------------------------------------------------------------------- 1 | 万事开头难 2 | -------------------------------------------------------------------------------- /data/unicode_registry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/data/unicode_registry.json -------------------------------------------------------------------------------- /datapackage/VERSION: -------------------------------------------------------------------------------- 1 | 1.15.4 2 | -------------------------------------------------------------------------------- /datapackage/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/__init__.py -------------------------------------------------------------------------------- /datapackage/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/__main__.py -------------------------------------------------------------------------------- /datapackage/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/cli.py -------------------------------------------------------------------------------- /datapackage/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/config.py -------------------------------------------------------------------------------- /datapackage/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/exceptions.py -------------------------------------------------------------------------------- /datapackage/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/group.py -------------------------------------------------------------------------------- /datapackage/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/helpers.py -------------------------------------------------------------------------------- /datapackage/infer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/infer.py -------------------------------------------------------------------------------- /datapackage/package.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/package.py -------------------------------------------------------------------------------- /datapackage/profile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/profile.py -------------------------------------------------------------------------------- /datapackage/profiles/data-package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/profiles/data-package.json -------------------------------------------------------------------------------- /datapackage/profiles/data-resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/profiles/data-resource.json -------------------------------------------------------------------------------- /datapackage/profiles/fiscal-data-package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/profiles/fiscal-data-package.json -------------------------------------------------------------------------------- /datapackage/profiles/registry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/profiles/registry.json -------------------------------------------------------------------------------- /datapackage/profiles/tabular-data-package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/profiles/tabular-data-package.json -------------------------------------------------------------------------------- /datapackage/profiles/tabular-data-resource.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/profiles/tabular-data-resource.json -------------------------------------------------------------------------------- /datapackage/pushpull.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/pushpull.py -------------------------------------------------------------------------------- /datapackage/registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/registry.py -------------------------------------------------------------------------------- /datapackage/resource.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/resource.py -------------------------------------------------------------------------------- /datapackage/validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/datapackage/validate.py -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/package.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/examples/package.py -------------------------------------------------------------------------------- /examples/resource.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/examples/resource.py -------------------------------------------------------------------------------- /pylama.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/pylama.ini -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/pytest.ini -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_cli.py -------------------------------------------------------------------------------- /tests/test_helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_helpers.py -------------------------------------------------------------------------------- /tests/test_infer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_infer.py -------------------------------------------------------------------------------- /tests/test_package.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_package.py -------------------------------------------------------------------------------- /tests/test_profile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_profile.py -------------------------------------------------------------------------------- /tests/test_pushpull.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_pushpull.py -------------------------------------------------------------------------------- /tests/test_registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_registry.py -------------------------------------------------------------------------------- /tests/test_resource.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_resource.py -------------------------------------------------------------------------------- /tests/test_validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frictionlessdata/datapackage-py/HEAD/tests/test_validate.py --------------------------------------------------------------------------------