Name | pydbisam JSON |
Version |
1.2.0
JSON |
| download |
home_page | |
Summary | Read DBISAM database tables. |
upload_time | 2023-10-07 03:23:42 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | Copyright (c) 2022, Aaron Linville <aaron@linville.org> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
keywords |
dbisam
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
PyDBISAM
========
PyDBISAM is a pure Python module to read and export data from DBISAM tables (from their `.dat` files). The scope of PyDBISAM is _not_ to provide a full database framework but merely to provide the ability to read the table structure and the raw table data.
DBISAM is an on-disk database with one file per table. The file format is proprietary. The basic structure is [documented here](NOTES.md).
CLI Usage
---------
PyDBISAM includes a simple CLI that can be used to dump the table structure or export the data to various formats (e.g.: CSV).
```shell
# pydbisam --dump-structure path/to/file.dat
# pydbisam --dump-csv path/to/file.dat
```
Code Usage
----------
The PyDBISAM class can be used for read-only access to the tables.
```python
from pydbisam import PyDBISAM
with PyDBISAM("path/to/file.dat") as db:
print(", ".join(db.fields()))
for row in db.rows():
print(", ".join(map(str, row)))
```
Similar Projects
----------------
- [DBISAM-to-JSON](https://github.com/KrijnL/DBISAM-to-JSON)
- Python 2/3 script to convert DBISAM to JSON (limited support for various column types).
Raw data
{
"_id": null,
"home_page": "",
"name": "pydbisam",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "dbisam",
"author": "",
"author_email": "Aaron Linville <aaron@linville.org>",
"download_url": "",
"platform": null,
"description": "PyDBISAM\n========\n\nPyDBISAM is a pure Python module to read and export data from DBISAM tables (from their `.dat` files). The scope of PyDBISAM is _not_ to provide a full database framework but merely to provide the ability to read the table structure and the raw table data.\n\nDBISAM is an on-disk database with one file per table. The file format is proprietary. The basic structure is [documented here](NOTES.md).\n\n\nCLI Usage\n---------\nPyDBISAM includes a simple CLI that can be used to dump the table structure or export the data to various formats (e.g.: CSV).\n\n```shell\n# pydbisam --dump-structure path/to/file.dat\n\n# pydbisam --dump-csv path/to/file.dat\n```\n\n\nCode Usage\n----------\nThe PyDBISAM class can be used for read-only access to the tables.\n```python\nfrom pydbisam import PyDBISAM\n\nwith PyDBISAM(\"path/to/file.dat\") as db:\n\tprint(\", \".join(db.fields()))\n\tfor row in db.rows():\n\t\tprint(\", \".join(map(str, row)))\n```\n\n\nSimilar Projects\n----------------\n\n- [DBISAM-to-JSON](https://github.com/KrijnL/DBISAM-to-JSON)\n - Python 2/3 script to convert DBISAM to JSON (limited support for various column types).\n",
"bugtrack_url": null,
"license": "Copyright (c) 2022, Aaron Linville <aaron@linville.org> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ",
"summary": "Read DBISAM database tables.",
"version": "1.2.0",
"project_urls": {
"Homepage": "https://github.com/linville/pydbisam/"
},
"split_keywords": [
"dbisam"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8eed660499114018f44312f86099e9da75ec619cddeefb12e16525c6ae5d02b0",
"md5": "f1e241116a86199acc25e33c0d77919f",
"sha256": "daebfb9eecd5d0eee49c774756cbabbf1894cd3726067a8d37ecf85dc982b446"
},
"downloads": -1,
"filename": "pydbisam-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f1e241116a86199acc25e33c0d77919f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7868,
"upload_time": "2023-10-07T03:23:42",
"upload_time_iso_8601": "2023-10-07T03:23:42.424730Z",
"url": "https://files.pythonhosted.org/packages/8e/ed/660499114018f44312f86099e9da75ec619cddeefb12e16525c6ae5d02b0/pydbisam-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-07 03:23:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "linville",
"github_project": "pydbisam",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pydbisam"
}