Skip to main content

inf_0008_custom_orm - Team 1

Установка:

pip install custom-orm

Пример использования:

from datetime import datetime
from custom-orm import db


class User(db.Model):
    table_name = 'asdfasdf'
    id = db.IntegerField(primary_key=True, auto_increment=True)
    name = db.StringField(max_length=255)
    surname = db.StringField(max_length=255)
    age = db.IntegerField(name_in_db='my_age')
    birth = db.DateTimeField()
    is_agent_007 = db.BooleanField()

    
# You can get User instance by creating database entry
u = User(name='Ruslan', surname='Gazizov', age=18, is_agent_007=True,
         birth=datetime(year=2003, month=1, day=21))
# Or by finding it in database
u = User.where(name='Ruslan', my_age=18)

# Directly change the properties without saving
u.name = 'Другое имя'
u.surname = 'Другая фамилия'
u.age = '22'
u.birth = datetime(year=2021, month=11, day=27)
u.is_agent_007 = False
# Save changes
u.save()

# Delete database entry
User.delete(primary_key_value=u.id)
User.save()

Metadata

Release files for custom-orm 0.5

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

Source distribution (sdist)

Source distribution for custom-orm 0.5
File Size Uploaded Provenance Actions
custom_orm-0.5.tar.gz 4.2 kB Without provenance Details for custom_orm-0.5.tar.gz

Release files / custom_orm-0.5.tar.gz

Download URL custom_orm-0.5.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7cbda3140c0b87750fae080acb00c79d2026f7b44ae4e13533a8ceadf0a370a5
BLAKE2b-256 checksum
How to use checksums
8090fe2e69b9e5c6bd4d09bb4d18e8136ac068de7e02f7eee6b96b07d4eab2e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.6

Security for custom-orm 0.5

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