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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for france_naf-20201022-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e397077db2ec7534872bafef4a2e19ae9c820ce1eb8426fee38fe678ff95d3f |
|
MD5 | 0793f873907fc7ac2878c1f0cc5403ee |
|
BLAKE2b-256 | 1184671177c9d7b44948f2477e947d48db7d7e0650e6cf5a70bcbb6973781608 |