dbf_light-1.0.0
توضیحات
Light and easy DBF reader
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dbf_light-1.0.0 |
| نام | dbf_light |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Igor `idle sign` Starikov |
| ایمیل نویسنده | idlesign@yandex.ru |
| آدرس صفحه اصلی | https://github.com/idlesign/dbf_light |
| آدرس اینترنتی | https://pypi.org/project/dbf_light/ |
| مجوز | BSD 3-Clause License |
dbf_light
=========
https://github.com/idlesign/dbf_light
.. image:: https://idlesign.github.io/lbc/py2-lbc.svg
:target: https://idlesign.github.io/lbc/
:alt: LBC Python 2
----
|release| |lic| |ci| |coverage|
.. |release| image:: https://img.shields.io/pypi/v/dbf_light.svg
:target: https://pypi.python.org/pypi/dbf_light
.. |lic| image:: https://img.shields.io/pypi/l/dbf_light.svg
:target: https://pypi.python.org/pypi/dbf_light
.. |ci| image:: https://img.shields.io/travis/idlesign/dbf_light/master.svg
:target: https://travis-ci.org/idlesign/dbf_light
.. |coverage| image:: https://img.shields.io/coveralls/idlesign/dbf_light/master.svg
:target: https://coveralls.io/r/idlesign/dbf_light
Description
-----------
*Light and easy DBF reader*
No fancy stuff, just DBF reading for most common format versions.
* Python 2.7, 3.5+;
* Uses `namedtuple` for row representation and iterative row reading to minimize memory usage;
* Works fine with cyrillic (supports KLADR and CBRF databases);
* Reads .dbf from zip files.
API
---
.. code-block:: python
from dbf_light import Dbf
with Dbf.open('some.dbf') as dbf:
for field in dbf.fields:
print('Field: %s' % field)
print('Rows (%s):' % dbf.prolog.records_count)
for row in dbf:
print(row)
# Read `some.dbf` from zip (ignoring filename case):
with Dbf.open_zip('some.dbf', 'here/myarch.zip', case_sensitive=False) as dbf:
...
CLI
---
Requires `click` package (can be installed with: `pip install dbf_light[cli]`).
.. code-block:: bash
$ dbf_light describe myfile.dbf
$ dbf_light show myfile.dbf
نحوه نصب
نصب پکیج whl dbf_light-1.0.0:
pip install dbf_light-1.0.0.whl
نصب پکیج tar.gz dbf_light-1.0.0:
pip install dbf_light-1.0.0.tar.gz