Skip to main content

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.

Metadata

Release files for unspsc-fr 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unspsc-fr 0.1.1
File Size Uploaded Provenance Actions
unspsc_fr-0.1.1.tar.gz 7.4 kB With provenance Details for unspsc_fr-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unspsc-fr 0.1.1
File Interpreter ABI Platform Actions
unspsc_fr-0.1.1-py3-none-any.whl Python 3 none any Details for unspsc_fr-0.1.1-py3-none-any.whl

Total release size: 16.0 kB

Release files / unspsc_fr-0.1.1.tar.gz

Download URL unspsc_fr-0.1.1.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5dddb87f1a2edbe49f9d328ab845a7095e92aa0f8288afdbf45c2cf94d901f03
BLAKE2b-256 checksum
How to use checksums
511fbfc45114ec5ee316bc6780eb080bc817c1097b1033d63e5fc8599e993c95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

Release files / unspsc_fr-0.1.1-py3-none-any.whl

Download URL unspsc_fr-0.1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2475a0674d08d36a7be97c6e4e2c098b2e7381bd3558d67e6e45dce31984dd6f
BLAKE2b-256 checksum
How to use checksums
eb602ef174d710e18d5475584196f88ed10e88bdfcccb1ceea6ed7832ea88fcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

Security for unspsc-fr 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unspsc_fr-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page