Skip to main content

UNSPSC v26 bilingue EN/FR : lookup, hiérarchie et recherche floue sur la nomenclature des marchés publics

Project description

unspsc-fr

La nomenclature UNSPSC v26 bilingue EN/FR, requêtable en Python : lookup de codes, navigation hiérarchique et recherche plein texte insensible aux accents.

Données : 149 849 produits, 21 706 traductions françaises sourcées (gouvernement du Canada). Détails, couverture et licences : github.com/codebysaadbouh/unspsc-fr.

Installation

pip install unspsc-fr

La base SQLite (~88 Mo) est téléchargée au premier usage puis mise en cache (~/.cache/unspsc-fr/). Pour utiliser une base locale : variable d'environnement UNSPSC_FR_DB ou UNSPSC(db_path=...).

Usage

from unspsc_fr import UNSPSC

u = UNSPSC()

u.get(10101501)
# Entry(code=10101501, level='commodity', title_en='Cats', title_fr='Chats', …)
# .title → 'Chats' (repli automatique sur l'anglais si non traduit)

u.search("béton", lang="fr")             # plein texte, accents ignorés
u.search("cemen", lang="en")             # préfixe : saisie incrémentale
u.children()                              # les 58 segments
u.children(10101500)                      # produits d'une classe
u.ancestors(10101501)                     # segment > famille > classe

CLI

unspsc-fr get 10101501
unspsc-fr search "ciment" --lang fr
unspsc-fr children 10100000
unspsc-fr ancestors 10101501 --json

Licences

Code MIT. Codeset © UNDP (UNSPSC®) ; traductions françaises sous Licence du gouvernement ouvert – Canada. Voir le NOTICE du dépôt.

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

unspsc_fr-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unspsc_fr-0.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file unspsc_fr-0.1.1.tar.gz.

File metadata

  • Download URL: unspsc_fr-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for unspsc_fr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5dddb87f1a2edbe49f9d328ab845a7095e92aa0f8288afdbf45c2cf94d901f03
MD5 054e9a87bfb1fb92027a0653d5034d19
BLAKE2b-256 511fbfc45114ec5ee316bc6780eb080bc817c1097b1033d63e5fc8599e993c95

See more details on using hashes here.

Provenance

The following attestation bundles were made for unspsc_fr-0.1.1.tar.gz:

Publisher: publish-pypi.yml on codebysaadbouh/unspsc-fr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file unspsc_fr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: unspsc_fr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for unspsc_fr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2475a0674d08d36a7be97c6e4e2c098b2e7381bd3558d67e6e45dce31984dd6f
MD5 243cdb2d15ed03072e31c7aaa7fd77cb
BLAKE2b-256 eb602ef174d710e18d5475584196f88ed10e88bdfcccb1ceea6ed7832ea88fcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for unspsc_fr-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on codebysaadbouh/unspsc-fr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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