Skip to main content

A array based way of dealing with csv files

Project description

coalas

PyPI Latest Release License

Overview

This aims to be the simplest way of handling CSV files.

I was pissed off with how pandas handled data, so I think I am going to make my own. Also pandas has a data limit of 50MB which is kinda stupid I may also be using it wrong. But anyways this is limited to the ram in your computer so have fun.

Install

pip install coalas

Upgrade

pip install coalas --upgrade

Use

At the begging of your file import the data using the function

from coalas import csvReader as c
c.importData("filename")
c.printAll()

This will bring all the data from your CSV and init them to arrays with that are named after your headers.

Example: If I have a csv file like this:

foo,bar,biz
james,lars,kirk
john,paul,george #sorry ringo
gilmour,barret,waters

after importing the data you will get the arrays:

foo = ['james', 'john', 'gilmour']
bar = ['lars', 'paul', 'barret']
biz = ['kirk', 'george', 'waters']

You can the mutate the state of the arrays with normal python functionality or for more CSV specific functions use the function detailed in the wiki page

Contributing

Thank you for wanting to contribute, please look at the todo file for task that remain unfinished, or audit the code. In general use your rational judgment, don't submit anything malicious or project breaking, I or any maintainers will check. Don't be afraid to do anything radical or delete large swaths of code, take risks and innovate.

The only requirement I will set is that you write a log of your work in the log.md file. Follow the format. This must be done before and after every session. While this might seem tedious and monotonous, it allows me other to acknowledge the effort you have put it to helping the open source community. It as also fun to go back read anecdotes and relive the pain or jubilation the past.

Thanks

Thanks to @Stelercus for the name, had to change it to coalas instead of koalas because koalas wass already taken

Donate

Eth: 0xc7AfE4114E3b78cB22Ec7EbDA11AD40199a9Cb96

Cardano: addr1q85kef4y4zx4lyxyuq3wgec3nddn53wv6nmydrc6eyx5l47jdatz0hja95dudtxclcjp8ejkthl6hl5xjfregk9lllrs8um6c0

Info


email (business) : me@danielokita.com
twitter : @theArctesian
discord : 0xArctesian#8968
telegram : @TheArctesian
signal : @Arctesian

PSA!!

This project is licensed under GPL-3. If you have a problem with it cry about it. In short, any fork of this project must maintain the license and adhere to the 4 essential freedoms of free software as listed by the FSF.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coalas-0.0.9.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

coalas-0.0.9-py3-none-any.whl (18.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page