ConvertMe – Ayoyoyo Wololo
Simple dataset convertor in Python. Currently memory hungry in case of large datasets.
Installation
Install package via pip:
$ pip install convertme
Use the provided CLI:
$ convertme --help
Usage: convertme [OPTIONS]
Options:
-if, --input-format [csv|fimi|cxt|mat|cex]
[required]
-of, --output-format [csv|fimi|cxt|mat|cex]
[required]
-i, --input TEXT Input file, skip it for stdin.
-o, --output TEXT Output file, skip it for stdout.
--input-delimiter TEXT (CSV) Delimiter of input. [default: ,]
--output-delimiter TEXT (CSV) Delimiter of output. [default: ,]
--objects-col INTEGER (CSV) Index of column with object labels,
typically 0, ignored on default.
--attributes-row INTEGER (CSV) Index of row with attribute labels,
typically 0, ignored on default.
--true-values TEXT (CSV) Values which will be count as True,
comma separated.
--help Show this message and exit.
Basic usage:
Convert simple csv file to fimi format:
$ convertme -i dataset.csv -if=csv -o dataset.fimi -of=fimi
Content of dataset.csv:
1,0,1,0
0,1,0,1
Content of dataset.fimi:
0 2
1 3
Supported formats
csv
burmeister (.cxt)
fimi
matlab (version<=7.3)
conexp (.cex)
Development
Clone this repository to the folder, then:
# create virtualenv (optional)
$ mkvirtualenv convertme -p python3
#if is not actived (optional)
$ workon convertme
$ pip install -e .
$ python setup.py test
History
0.1.0 (2020-03-24)
Supported formats (csv, burmeister, fimi, matlab (version<=7))
Basic CLI implemented
0.1.1 (2020-04-7)
Added Conexp format support
Added support of Python 3.5, 3.6
0.1.2 (2020-04-17)
Rewritten to bitarray under the hood (less memory needed)
0.1.3 (2022-08-10)
Fimi: attributes are not required to start from zero
Added support for Python 3.9, 3.10
Drop support for Python 3.5
0.1.4 (2022-08-10)
Fix instalation error
Metadata
Release files for convertme 0.1.4
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 |
|---|---|---|---|---|
| convertme-0.1.4.tar.gz | 11.0 kB | Without provenance | Details for convertme-0.1.4.tar.gz |
Release files / convertme-0.1.4.tar.gz
| Download URL | convertme-0.1.4.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39a44b38e4a744d3db16b28bc24eb70e93fe6bde18b248b7cc872c8aade4cd4f
|
|
BLAKE2b-256 checksum How to use checksums |
ee76ad2c55aa2dc11400af4db62670d8f873abfd678ca9a7114eb67192ab8938
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.12
|
Security for convertme 0.1.4
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.