Skip to content

letcsv/coalas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) : [email protected]
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.

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • Shell 2.1%