Name | sqlite2csv JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | Export data from a SQLite database to CSV files. |
upload_time | 2024-07-14 16:31:31 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2024 日高 凌 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
conversion
copy
csv
sqlite
tool
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# sqlite2csv
[![PyPI version](https://badge.fury.io/py/sqlite2csv.svg)](https://badge.fury.io/py/sqlite2csv)
![build](https://github.com/ryohidaka/sqlite2csv/workflows/Build/badge.svg)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
Export data from a SQLite database to CSV files.
## Installation
You can install this library using PyPI:
```shell
pip install sqlite2csv
```
## Usage
### Retrieve all tables
```python
from sqlite2csv import SqliteToCSV
database = "sqlite:///db/test.db"
dest_dir = ".output"
app = SqliteToCSV(database=database, dest_dir=dest_dir)
app.export()
```
### Retrieve an arbitrary tables
```python
from sqlite2csv import SqliteToCSV
database = "sqlite:///db/test.db"
dest_dir = ".output"
table_names = ["users", "projects"]
app = SqliteToCSV(database=database, dest_dir=dest_dir, table_names=table_names)
app.export()
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "sqlite2csv",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "conversion, copy, csv, sqlite, tool",
"author": null,
"author_email": "ryohidaka <39184410+ryohidaka@users.noreply.github.com>",
"download_url": "https://files.pythonhosted.org/packages/ac/65/1f575ea0a15f1fea86bdc8f64bb80e1a5bd6f255394a48522c8c5e1fe3eb/sqlite2csv-0.2.0.tar.gz",
"platform": null,
"description": "# sqlite2csv\n\n[![PyPI version](https://badge.fury.io/py/sqlite2csv.svg)](https://badge.fury.io/py/sqlite2csv)\n![build](https://github.com/ryohidaka/sqlite2csv/workflows/Build/badge.svg)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nExport data from a SQLite database to CSV files.\n\n## Installation\n\nYou can install this library using PyPI:\n\n```shell\npip install sqlite2csv\n```\n\n## Usage\n\n### Retrieve all tables\n\n```python\nfrom sqlite2csv import SqliteToCSV\n\ndatabase = \"sqlite:///db/test.db\"\ndest_dir = \".output\"\n\napp = SqliteToCSV(database=database, dest_dir=dest_dir)\napp.export()\n```\n\n### Retrieve an arbitrary tables\n\n```python\nfrom sqlite2csv import SqliteToCSV\n\ndatabase = \"sqlite:///db/test.db\"\ndest_dir = \".output\"\ntable_names = [\"users\", \"projects\"]\n\napp = SqliteToCSV(database=database, dest_dir=dest_dir, table_names=table_names)\napp.export()\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 \u65e5\u9ad8 \u51cc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Export data from a SQLite database to CSV files.",
"version": "0.2.0",
"project_urls": {
"Changelog": "https://github.com/ryohidaka/blob/main/sqlite2csv/CHANGELOG.md",
"Homepage": "https://github.com/ryohidaka/sqlite2csv",
"Issues": "https://github.com/ryohidaka/sqlite2csv/issues",
"Repository": "https://github.com/ryohidaka/sqlite2csv"
},
"split_keywords": [
"conversion",
" copy",
" csv",
" sqlite",
" tool"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f6df612ec2f6562bf842612575e392d7855aec9f208619e5cf1a2c627cf7e7b6",
"md5": "63fa2663ad5eb0cd0a7896fa528da4f4",
"sha256": "10a1a76a396bf0cee4e0857c73b9d1f29f227a76eadb992a478abba412bc0791"
},
"downloads": -1,
"filename": "sqlite2csv-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "63fa2663ad5eb0cd0a7896fa528da4f4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6164,
"upload_time": "2024-07-14T16:31:30",
"upload_time_iso_8601": "2024-07-14T16:31:30.587737Z",
"url": "https://files.pythonhosted.org/packages/f6/df/612ec2f6562bf842612575e392d7855aec9f208619e5cf1a2c627cf7e7b6/sqlite2csv-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ac651f575ea0a15f1fea86bdc8f64bb80e1a5bd6f255394a48522c8c5e1fe3eb",
"md5": "601c1080379f7220266044ab82772d33",
"sha256": "cf7faf1e6af54541746a70713daa4a4627fb81bed11484d9fab267e3db6e1f69"
},
"downloads": -1,
"filename": "sqlite2csv-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "601c1080379f7220266044ab82772d33",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6162,
"upload_time": "2024-07-14T16:31:31",
"upload_time_iso_8601": "2024-07-14T16:31:31.681543Z",
"url": "https://files.pythonhosted.org/packages/ac/65/1f575ea0a15f1fea86bdc8f64bb80e1a5bd6f255394a48522c8c5e1fe3eb/sqlite2csv-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-14 16:31:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ryohidaka",
"github_project": "blob",
"github_not_found": true,
"lcname": "sqlite2csv"
}