dbhydra-0.4.0
توضیحات
Data science friendly ORM combining Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dbhydra-0.4.0 |
| نام | dbhydra |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DovaX |
| ایمیل نویسنده | dovax.ai@gmail.com |
| آدرس صفحه اصلی | https://github.com/DovaX/dbhydra |
| آدرس اینترنتی | https://pypi.org/project/dbhydra/ |
| مجوز | - |
# dbhydra
Data science friendly ORM (Object Relational Mapping) library combining Python, Pandas, and various SQL dialects
For full documentation see official [documentation](http://app.forloop.ai/dbhydra/documentation)
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install dbhydra.
```bash
pip install dbhydra
```
## Usage
```python
import dbhydra.dbhydra_core as dh
db1=dh.db()
table1 = dh.Table(db1,"test",["test1","test2","test3","test4"],["int","int","int","int"])
#table1.drop()
#table1.create()
#rows=[[1,2,3,4],[5,4,7,9]]
#table1.insert(rows)
list1=table1.select("SELECT * FROM test")
print(list1)
#list2=table1.select_all()
#print(list2)
#table1.drop()
table1.export_to_xlsx()
tables=db1.get_all_tables()
table_dict=db1.generate_table_dict()
print(tables)
columns=table_dict['test'].get_all_columns()
types=table_dict['test'].get_all_types()
print(columns,types)
table_test=dh.Table.init_all_columns(db1,"test")
print(table_test.columns)
table2 = dh.Table(db1,"test_new",["id","test2"],["int","nvarchar(20)"])
#table2.create()
```
## Current scope
Aims: Easy integration with Pandas, SQL SERVER/MySQL database, and exports/imports to/from excel/CSV format
Done: Table functions (Create, Drop, Select, Update, Insert, and Delete) should be working fine
Todo: Group by, Order by, Where, Linking of FK, Customizable PK,...
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)
نیازمندی
| مقدار | نام |
|---|---|
| - | pyodbc |
| - | pandas |
| - | pymysql |
| - | pymongo |
| - | google-cloud-bigquery |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl dbhydra-0.4.0:
pip install dbhydra-0.4.0.whl
نصب پکیج tar.gz dbhydra-0.4.0:
pip install dbhydra-0.4.0.tar.gz