Python tool for importing and validating data from xlsx/xls/csv files.
Project description
import me
Python tool for importing and validating data from xlsx/xls/csv files.
Example
from import_me import BaseXLSXParser
>>> class XLSXParser(BaseXLSXParser):
... columns = [
... Column('first_name', index=0, header='First Name'),
... Column('last_name', index=1, header='Last Name'),
... ]
>>> parser = XLSXParser(file_path=xlsx_filepath)
>>> parser()
>>> print(parser.has_errors) # False
>>> pprint(parser.cleaned_data)
[
{
'first_name': 'Ivan',
'last_name': 'Ivanov',
'row_index': 1,
},
{
'first_name': 'Petr',
'last_name': 'Petrov',
'row_index': 2,
},
]
Installation
pip install import_me
Contributing
We would love you to contribute to our project. It's simple:
- Create an issue with bug you found or proposal you have. Wait for approve from maintainer.
- Create a pull request. Make sure all checks are green.
- Fix review comments if any.
- Be awesome.
Here are useful tips:
- You can run all checks and tests with
make check
. Please do it before TravisCI does. - We use BestDoctor python styleguide. Sorry, styleguide is available only in Russian for now.
- We respect Django CoC. Make soft, not bullshit.
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
import_me-0.0.1.tar.gz
(8.6 kB
view details)
File details
Details for the file import_me-0.0.1.tar.gz
.
File metadata
- Download URL: import_me-0.0.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
94a3d9459267d696ee6b40646def8943beac86c17e97d097dff6ad9eae41fb4b
|
|
MD5 |
a1d091899f46727060cd405f8db82760
|
|
BLAKE2b-256 |
634ed0fe0486e6c71007865d5c602db7e215b9e62bed7006b09394f034190646
|