Convert CSV/TSV files into XLSX
Project description
oct4th
CLI tool to convert CSV/TSV files to Excel spreadsheets, while not converting gene names (e.g. OCT4, DEC1) into dates in the process.
For converting small files, you can use the Oct4th web application.
To learn more about this issue, check out this article.
Installation
pip3 install -U oct4th
If you don't have access to a computer where you can run pip
, check out this Colab notebook.
Usage
As a CLI:
# Convert a CSV file to XLSX
oct4th --input ./data/test.csv --output ./data/test.xlsx
From Python:
import oct4th
# Convert a CSV file to XLSX
oct4th.csv_to_xlsx(file_in="./data/test.csv", file_out="./data/test.xlsx")
Developing
python3 -m venv ve
. ve/bin/activate
pip install setuptools wheel twine pytest xlsxwriter pandas xlrd
Run Tests
PYTHONPATH=. pytest ./tests/
Deploy
# Clean up and rebuild
. ve/bin/activate
rm -rf ./build/ ./dist/
python3 setup.py sdist bdist_wheel
# Check before deploying
twine check dist/*
# Upload to testpypi
python3 -m twine upload --repository testpypi dist/*
# Test install
deactivate; pip3 install -U -i https://test.pypi.org/simple/ oct4th==1.0.0b9
# Deploy to pypi
# python3 -m twine upload --repository pypi dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oct4th-1.0.1.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file oct4th-1.0.1.tar.gz
.
File metadata
- Download URL: oct4th-1.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8c0d36d025f7b10753349bc28597c9774c06dab80b71b8515ebc3ad98653262 |
|
MD5 | 1deb9399677b21a8e56288bc0d5e594d |
|
BLAKE2b-256 | f15fa417fc4704f4a9535466de3fe63d72add2bedbfe7945a7bb23a67bc773a1 |
File details
Details for the file oct4th-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: oct4th-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6086afb789bb0b855dcc28055251dfe7d3076f7d6ba2a5ad9a6ca9b280d5111d |
|
MD5 | 7524c361ceb06dbad6384e82bdc96c76 |
|
BLAKE2b-256 | 2504c494d28f947e7c32a3ec43c0d490fd976f4b86b17564d6f27292ef7589ab |