y10h / ydbf Goto Github PK
View Code? Open in Web Editor NEWPythonic reader and writer for DBF/XBase files
Home Page: http://pypi.python.org/pypi/YDbf
License: BSD 3-Clause "New" or "Revised" License
Pythonic reader and writer for DBF/XBase files
Home Page: http://pypi.python.org/pypi/YDbf
License: BSD 3-Clause "New" or "Revised" License
YDbf doesn't work with Python3 at all. Please update it to be compatible.
Current ydbf license is GPL2. I'm not sure it makes sense to keep it so restrictive. I'm up for updating it to BSD.
There is no solution on pypi which can open and read foxbase dbf file.
Does Ydbf have plan to support this dbf format?
I have problem with read old-generated dbf-file.
Some empty char field contains strange data.
For example, field C 15 have date:
\x20\x20\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20
Path for correct this error:
diff --git a/ydbf/reader.py b/ydbf/reader.py
index 54d7d5e..f6a2a42 100644
--- a/ydbf/reader.py
+++ b/ydbf/reader.py
@@ -260,7 +260,7 @@ class YDbfReader(object):
# deleted record
continue
try:
- yield dict((name, conv(val.rstrip('\x00'), size, dec))
+ yield dict((name, conv(val.split('\x00', 1)[0], size, dec))
for (conv, name, size, dec), val
in izip(converters, record)
if (name != '_deletion_flag' or show_deleted))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.