Name | auto-crud-param JSON |
Version |
0.2.1
JSON |
| download |
home_page | |
Summary | Auto Create Retrieve Update Delete ORM Functionality for Param models using SQL alchemy. |
upload_time | 2023-12-01 01:42:09 |
maintainer | |
docs_url | None |
author | Shawn Anderson |
requires_python | >=3.10,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# auto_crud_param
Auto Create Retrieve Update Delete ORM Functionality for Param models using SQL alchemy.
## Installation:
Install with pip:
```bash
pip install auto-crud-param
```
## Example Usage:
```python
import param as pm
from sqlalchemy import create_engine
from sqlalchemy.orm import declarative_base, sessionmaker
from auto_crud_param import parameterized_to_model
Base = declarative_base()
# Example usage
class A(pm.Parameterized):
name = pm.String(default='Item A')
value = pm.Number(default=0)
AModel = parameterized_to_model(A, Base)
# Set up the database (for example, using SQLite)
engine = create_engine('sqlite:///mydatabase.db')
Base.metadata.create_all(engine)
Session = sessionmaker(bind=engine)
```
## Development
To run the package locally you need python, git, and poetry.
```bash
git clone git@github.com:longtailfinancial/auto_crud_param.git
cd git@github.com:longtailfinancial/auto_crud_param.git
poetry install
poetry shell
python example.py
```
Raw data
{
"_id": null,
"home_page": "",
"name": "auto-crud-param",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Shawn Anderson",
"author_email": "shawn@longtailfinancial.com",
"download_url": "https://files.pythonhosted.org/packages/83/54/8b13d6e6608771fdc822bbf671792016c40f40b05d9126d4c159d1be4500/auto_crud_param-0.2.1.tar.gz",
"platform": null,
"description": "# auto_crud_param\nAuto Create Retrieve Update Delete ORM Functionality for Param models using SQL alchemy.\n\n## Installation:\n\nInstall with pip:\n```bash\npip install auto-crud-param\n```\n\n\n## Example Usage: \n\n```python\nimport param as pm\nfrom sqlalchemy import create_engine\nfrom sqlalchemy.orm import declarative_base, sessionmaker\n\nfrom auto_crud_param import parameterized_to_model\n\nBase = declarative_base()\n\n\n# Example usage\nclass A(pm.Parameterized):\n name = pm.String(default='Item A')\n value = pm.Number(default=0)\n\n\nAModel = parameterized_to_model(A, Base)\n\n# Set up the database (for example, using SQLite)\nengine = create_engine('sqlite:///mydatabase.db')\nBase.metadata.create_all(engine)\nSession = sessionmaker(bind=engine)\n```\n\n\n## Development\n\nTo run the package locally you need python, git, and poetry.\n\n```bash\ngit clone git@github.com:longtailfinancial/auto_crud_param.git\ncd git@github.com:longtailfinancial/auto_crud_param.git\npoetry install\npoetry shell\npython example.py\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Auto Create Retrieve Update Delete ORM Functionality for Param models using SQL alchemy.",
"version": "0.2.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "66608eb703057f528d6b6fb0557fe5bf3d0956544bcef5505106a351e0fc4107",
"md5": "3cc3569156bd270b99d96d0de73fe2f9",
"sha256": "6b224a2ed63339a38d96d7debc5b2ac40717a057d0849be72f1516b120325fd5"
},
"downloads": -1,
"filename": "auto_crud_param-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3cc3569156bd270b99d96d0de73fe2f9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 3439,
"upload_time": "2023-12-01T01:42:08",
"upload_time_iso_8601": "2023-12-01T01:42:08.004590Z",
"url": "https://files.pythonhosted.org/packages/66/60/8eb703057f528d6b6fb0557fe5bf3d0956544bcef5505106a351e0fc4107/auto_crud_param-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "83548b13d6e6608771fdc822bbf671792016c40f40b05d9126d4c159d1be4500",
"md5": "a82ca7faa41764e61f9bb03e53484303",
"sha256": "32bd129057f1b320d06232170d4bc0b7eb1247598d70380a33f7f43229b85ccb"
},
"downloads": -1,
"filename": "auto_crud_param-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "a82ca7faa41764e61f9bb03e53484303",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 2688,
"upload_time": "2023-12-01T01:42:09",
"upload_time_iso_8601": "2023-12-01T01:42:09.123486Z",
"url": "https://files.pythonhosted.org/packages/83/54/8b13d6e6608771fdc822bbf671792016c40f40b05d9126d4c159d1be4500/auto_crud_param-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-01 01:42:09",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "auto-crud-param"
}