LID Search
Is a library to manage the version number of the PDS4 products coming from space missions.
Installation
Using pip
To install the library using pip you can use the following command:
python3 -m pip install -U pip
python3 -m pip install lid_search
Using poetry
The library could be added to the poetry project using the command:
poetry add lid_serach
Usage
Database initialization
To initialize the database you can use the following instructions:
>>> from lid_search import LidDB
>>> db = LidDB(jFile='input/data.json',temporary_folder='tmp',cache=False)
where:
- jFile is the database in JSON format
- temporary_folder is the folder where will be stored the temporary SQLite3 database. The default is ./tmp
- cache is a boolean flag and is used to eable the use a cache version of the database.
Database interrogation
Now You can search the current version od the the lid using the search.
>>> lid="urn:esa:psa:bc_mpo_simbio-sys:data_raw:sim_raw_sc_hric_cust0_internal_cruise_ico11_2024-04-08_001"
>>> info=db.search()
The output is a semantic_version_tools class and the next version value could be obtained adding 1:
>>> info
0.1
>>> info += 1
>>> info
0.2
Database closing
To close the database you can use the instructions:
>>> db.close(preserve=False)
The keyword preserve is a bool that enable the preservation of the SQLite database, that could be recalled with the option cache in the database initialization.
Metadata
Release files for lid-search 0.4.0
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 | |
|---|---|---|---|---|
| lid_search-0.4.0.tar.gz | 15.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lid_search-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / lid_search-0.4.0.tar.gz
| Download URL | lid_search-0.4.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c0355a270fc009db193bb5039f44c074dfe925134ee8560ed680f8aefce6845
|
|
BLAKE2b-256 checksum How to use checksums |
60112a147fdb3d0b917b3c46c5ff32ea1c44da5c4b66ba3583a8d6b5b7b7b17e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.7 Darwin/25.3.0
|
Release files / lid_search-0.4.0-py3-none-any.whl
| Download URL | lid_search-0.4.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06705cd78a95529a78cbf8c57c668cecbec952a228940d6f8afa1fc22c813665
|
|
BLAKE2b-256 checksum How to use checksums |
f8effde7baa07db392d2342c2e27c870399a1de752c438ef58ffbd32dda7bd67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.7 Darwin/25.3.0
|
Security for lid-search 0.4.0
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.