an ORM library
Project description
sillyORM
simple ORM library written in Python
Should work with most DBMS that SQLAlchemy supports as it uses SQLAlchemy core, but it's only tested with
- SQLite
- PostgreSQL
[!CAUTION] :warning: sillyORM is not ready for use in production environments. It is still beta software and under development. The API is unstable, and each release may introduce breaking changes. There may even be security vulnerabilities present. If you use it anyway, make sure to pin the version!
Projects using sillyORM
- theverygaming/silly
- iLollek/Figuyo-Public - An app for keeping track of Anime Figures
Installation
pip install sillyorm
Usage
import sillyorm
# define a model, a model abstracts a table in the database
class Example(sillyorm.model.Model):
_name = "example" # database table name (sanitized) & name in environment
# fields
name = sillyorm.fields.String(length=255)
# connect to the DB and create a model registry
registry = sillyorm.Registry("sqlite:///test.db")
# register the model in the environment
registry.register_model(Example)
# create the database tables
registry.resolve_tables()
registry.init_db_tables()
env = registry.get_environment(autocommit=True)
# start using the model
record = env["example"].create({"name": "Hello world!"})
print(record.name)
Documentation
Read the docs here
[!NOTE] The docs are always for the latest release. If you need docs for another version you must build them yourself
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sillyorm-1.1.0.tar.gz.
File metadata
- Download URL: sillyorm-1.1.0.tar.gz
- Upload date:
- Size: 32.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aab36977fb6e54a7d1269857406ed5999436e5836ccbbdd393909c235b39efe4
|
|
| MD5 |
c03d4f3efb219767b55fa075ef2b2b99
|
|
| BLAKE2b-256 |
59e934102f0ba1906462993a4301f5d81dacf6aa706e8ac61eae5738b895ab13
|
Provenance
The following attestation bundles were made for sillyorm-1.1.0.tar.gz:
Publisher:
release.yml on theverygaming/sillyORM
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sillyorm-1.1.0.tar.gz -
Subject digest:
aab36977fb6e54a7d1269857406ed5999436e5836ccbbdd393909c235b39efe4 - Sigstore transparency entry: 737441769
- Sigstore integration time:
-
Permalink:
theverygaming/sillyORM@1e2c27b180ffb3bff0fd3ee141715e0b92f781a8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/theverygaming
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e2c27b180ffb3bff0fd3ee141715e0b92f781a8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sillyorm-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sillyorm-1.1.0-py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46e926452a3f200bcc5333e3858353a7b0bc14f0306bf84ed981a3e5b67a29fc
|
|
| MD5 |
d1183afff227fb48b5561d63b3155e0e
|
|
| BLAKE2b-256 |
d5348ede753dd804b4a00a9e5d4d53738206d889e6d790e0b28957248a596676
|
Provenance
The following attestation bundles were made for sillyorm-1.1.0-py3-none-any.whl:
Publisher:
release.yml on theverygaming/sillyORM
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sillyorm-1.1.0-py3-none-any.whl -
Subject digest:
46e926452a3f200bcc5333e3858353a7b0bc14f0306bf84ed981a3e5b67a29fc - Sigstore transparency entry: 737441799
- Sigstore integration time:
-
Permalink:
theverygaming/sillyORM@1e2c27b180ffb3bff0fd3ee141715e0b92f781a8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/theverygaming
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e2c27b180ffb3bff0fd3ee141715e0b92f781a8 -
Trigger Event:
workflow_dispatch
-
Statement type: