Skip to main content

auto_crud_param

Auto Create Retrieve Update Delete ORM Functionality for Param models using SQL alchemy.

Installation:

Install with pip:

pip install auto-crud-param

Example Usage:

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.

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

Metadata

Release files for auto-crud-param 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auto-crud-param 0.2.1
File Size Uploaded Provenance
auto_crud_param-0.2.1.tar.gz 2.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for auto-crud-param 0.2.1
File Interpreter ABI Platform
auto_crud_param-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / auto_crud_param-0.2.1.tar.gz

Download URL auto_crud_param-0.2.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
32bd129057f1b320d06232170d4bc0b7eb1247598d70380a33f7f43229b85ccb
BLAKE2b-256 checksum
How to use checksums
83548b13d6e6608771fdc822bbf671792016c40f40b05d9126d4c159d1be4500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.10.12 Linux/6.5.6-76060506-generic

Release files / auto_crud_param-0.2.1-py3-none-any.whl

Download URL auto_crud_param-0.2.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b224a2ed63339a38d96d7debc5b2ac40717a057d0849be72f1516b120325fd5
BLAKE2b-256 checksum
How to use checksums
66608eb703057f528d6b6fb0557fe5bf3d0956544bcef5505106a351e0fc4107
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.10.12 Linux/6.5.6-76060506-generic

Security for auto-crud-param 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page