Skip to main content

Python accessors to French NAF/APE codes

Project description

python-fr-naf

Python accessors to NAF/APE codes.

From https://www.insee.fr/fr/information/2406147

Installation

pip install france-naf

Usage

from naf import DB
# Get one NAF object
my_naf = DB["02.30Z"]
print(my_naf)
# "Récolte de produits forestiers non ligneux poussant à l'état sauvage"
"02.30Z" in DB
# True
print(my_naf.section)
# A
# Iter over NAF objects
for naf in DB:
    do_something_with(naf)
# Iter over code, description
for code, description in DB.pairs():
    pass
# Get the whole DB as a json string
str(DB)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

france-naf-20201022.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

france_naf-20201022-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file france-naf-20201022.tar.gz.

File metadata

  • Download URL: france-naf-20201022.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for france-naf-20201022.tar.gz
Algorithm Hash digest
SHA256 138f7ed60d50c50070799eb978dfd1bbb53741f31fa02fd8cb4e757aacd590a0
MD5 2b2f03a06d77a3fd1e216e1f10e60e9c
BLAKE2b-256 29bc700bc6ac7e742e14a57e95f6f3827c4d70fdbe621904dd634f2a05f200b3

See more details on using hashes here.

File details

Details for the file france_naf-20201022-py3-none-any.whl.

File metadata

  • Download URL: france_naf-20201022-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for france_naf-20201022-py3-none-any.whl
Algorithm Hash digest
SHA256 5e397077db2ec7534872bafef4a2e19ae9c820ce1eb8426fee38fe678ff95d3f
MD5 0793f873907fc7ac2878c1f0cc5403ee
BLAKE2b-256 1184671177c9d7b44948f2477e947d48db7d7e0650e6cf5a70bcbb6973781608

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page