Skip to main content

Lazy load of database

example:

file1.py

from LazyPony import LazyEntityMeta

class A(metaclass=LazyEntityMeta):

id = PrimaryKey(int, auto=True)

file2.py

from LazyPony import LazyEntityMeta

db = Database() LazyEntityMeta.attach(db) db.bind() db.generate_mapping()

file3.py

from file1 import A

query = A.select()

Metadata

Release files for LazyPony 0.3.2

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

Built distribution (wheel)

Table of built distributions (wheels) for LazyPony 0.3.2
File Interpreter ABI Platform
LazyPony-0.3.2-py3-none-any.whl Python 3 none any Details

Release files / LazyPony-0.3.2-py3-none-any.whl

Download URL LazyPony-0.3.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b91db2340302670f8440a66d24e18d021ab8e711dfcf6b5e01777606f1b9f1e
BLAKE2b-256 checksum
How to use checksums
1954e3fd5a4ab6d703c268ceb3009b4b6b681cf7789d0bfb9a873d78260779ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 release file

0.3.1

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

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