Superbio.ai
Package that can validate and return preview for different files.
Currenty supported extensions:
- .h5ad
- .csv
- .tsv
- .txt
- .pdb
- .fasta
Usage:
pip install file_process
from file_process import preview_file
try:
processor = FileProcessFactory.get(file_data.filename, file_data.file)
except WrongExtension as exc:
raise CustomException from exc
processor.validate(model_metadata_file)
var_target_names, obs_target_names, obs_preview, var_preview, text_preview = processor.get_preview()
where:
- file: an object of io.BytesIo or FileStorage which will be validated and previewed
- filename: name of the validated file (only it's extention will be used)
- model_metadata_file (optional parameter): file with metadata of a model that will be used for validation. If this file is provided, the code will check that this file has the same set of columns as the validated file. If this file is not provided, no validation will be applied.
The code returns a list of var targets and obs targets (columns from the validated file), var preview and obs preview and text preview. If some is not applicable for the file, None will be returned).
How to release:
- Make your changes
- Change the version in setup.py
- Merge changes into the main branch; it will be automatically released to pypi
Metadata
Release files for file-process 1.4.6
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 |
|---|---|---|---|---|
| file_process-1.4.6.tar.gz | 21.5 kB | With provenance | Details for file_process-1.4.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| file_process-1.4.6-py3-none-any.whl | Python 3 | none | any | Details for file_process-1.4.6-py3-none-any.whl |
Total release size: 46.2 kB
Release files / file_process-1.4.6.tar.gz
| Download URL | file_process-1.4.6.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb8083bb0c372968902480a14e5642068606337b52c330add5b71ac299ca5d3b
|
|
BLAKE2b-256 checksum How to use checksums |
45419e5956c210c0a7c6573868b39acadbc72670c346a5878e0bfa035262e466
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Jan 22, 2025.
Transparency logRelease files / file_process-1.4.6-py3-none-any.whl
| Download URL | file_process-1.4.6-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4893792c0b1b01e7893f5e01248c502c6156e2fec3a052447821e898881ca97
|
|
BLAKE2b-256 checksum How to use checksums |
4bea784fb4d34962793ecc5a707597ff89230c4707139628ea783e4d4cdbcdce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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 Jan 22, 2025.
Transparency logSecurity for file-process 1.4.6
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
Both files in this release have been uploaded with provenance metadata.
Attestation for file_process-1.4.6.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 Jan 22, 2025.
Transparency logA 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.