data-import
import data files via import-hook trickery
Installation
$ pip install dataimport
Usage
>>> import dataimport.test.csv as csv_file
>>> print(list(csv_file))
[['col1', 'col2', 'col3', 'col4'], ['1', '2', '3', '4'], ['5', '6', '7', '8'], ['9', '10', '11', '12'], ['13', '14', '15', '16'], ['17', '18', '19', '20']]
csv and json loaders are included, but adding or replacing a loader is easy!
>>> import dataimport
>>> import pandas
>>> dataimport.register('csv', pandas.read_csv)
>>> import dataimport.test.csv as datatable
>>> print(datatable)
col1 col2 col3 col4
0 1 2 3 4
1 5 6 7 8
2 9 10 11 12
3 13 14 15 16
4 17 18 19 20
Metadata
Release files for dataimport 0.1.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 | Actions |
|---|---|---|---|---|
| dataimport-0.1.0.tar.gz | 3.1 kB | Without provenance | Details for dataimport-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dataimport-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dataimport-0.1.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / dataimport-0.1.0.tar.gz
| Download URL | dataimport-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a771c592dbe33eb1332d11e54b8693fec991fe60840722c1e46730b6349b41f
|
|
BLAKE2b-256 checksum How to use checksums |
56ee742de63890c5d2c8fb98d393edd1465d19c4e4acde9feaf7309e71642480
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Release files / dataimport-0.1.0-py3-none-any.whl
| Download URL | dataimport-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d8edd43dc4065981a151d124fb35d8158de13d52509d94a59bb79438352037b
|
|
BLAKE2b-256 checksum How to use checksums |
10ea16187ea9439b4dc6dbd19e931dc2d7783ad1b33a6436bd45545f8d9d1624
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Security for dataimport 0.1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.