Perdu
Python library and webapp for matching against standard industry and product classifiers. Comes with NAICS, GS1, and USEEIO built-in.
Installation
Install using pip or conda:
conda -c conda-forge -c cmutel perdu
-or-
pip install perdu
Depends on:
- appdirs
- docopt
- flask
- peewee
- rdflib
- rdflib-jsonld
- whoosh
Usage
As a webapp:
conda_webapp
As a library:
import perdu
perdu.search_useeio("plastic toy")
Search basics
Perdu uses whoosh as the search engine. When you first import it, Perdu will import the three built-in catalogues in around one minute.
Built-in catalogues
Uploading data
Currently, the only possibility to upload data to the web interface is via CSV, with the first column being the item name or title, and the second (optional) column being the item description. See perdu.test.fixtures for examples.
Adding other catalogues
See the files in perdu.extraction for examples on how to extract data from PDFs (NAICS), XML (GS1), and JSON (USEEIO). Each search catalogue will have its own schema, but Perdu expects these schemas to have at least the columns name, description, and code (see examples in perdu.searching). New catalogues will need to have suitable functions provided in perdu.webapp.search_mapping.
Advanced searching
In addition to the default search method used in the web interface, Perdu also offers search corrections (search_corrector_gs1, search_corrector_naics, and search_corrector_useeio) and disjunction maximization (search_gs1_disjoint, search_useeio_disjoint, and search_naics_disjoint).
Metadata
Release files for perdu 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| perdu-0.2.1.tar.gz | 624.8 kB | Without provenance | Details for perdu-0.2.1.tar.gz |
Release files / perdu-0.2.1.tar.gz
| Download URL | perdu-0.2.1.tar.gz |
|---|---|
| Size | 624.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad7e0dc431173d661e291b5e2f7266a36f7bba8ea7849cf873e9df82d96db1d2
|
|
BLAKE2b-256 checksum How to use checksums |
7e56bb3e08cb491c18d2ecc19d2ec04669fd0a41db25dea91a1835c871acc5e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3
|
Security for perdu 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.