sqlatracker
Inspired by django-field-history
Example
from sqlalchemy import BigInteger, Column
from sqlalchemy.ext.declarative import as_declarative
from sqlatracker.field_tracker import FieldTracker
@as_declarative()
class Base:
id = Column(BigInteger, primary_key=True, autoincrement=True)
class Example(Base):
example_field_1 = Column(BigInteger)
example_field_2 = Column(BigInteger)
FieldTracker.listen_for(
Example.example_field_1,
Example.example_field_2,
)
Integrate with your metadata for alembic
from sqlatracker.field_tracker import FieldTracker
from sqlatracker.utils import merge_metadata
target_metadata = merge_metadata(your_metadata, FieldTracker.metadata)
Metadata
Release files for sqlatracker 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sqlatracker-0.0.7.tar.gz | 5.7 kB | Without provenance | Details for sqlatracker-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqlatracker-0.0.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sqlatracker-0.0.7-py2.py3-none-any.whl |
Total release size: 9.4 kB
Release files / sqlatracker-0.0.7.tar.gz
| Download URL | sqlatracker-0.0.7.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53843c914b39ad588b4822e535d4534be2cf43869f47a82bd33ebc1f2a6e9487
|
|
BLAKE2b-256 checksum How to use checksums |
7dae9e335d98e9270ae56c4045887ca1c1c220e42401bc4394c3baf6ed7d4b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / sqlatracker-0.0.7-py2.py3-none-any.whl
| Download URL | sqlatracker-0.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f560199aafb817655db7723395ac4c41a276a9e2186c3963a9522b8ce63adcb4
|
|
BLAKE2b-256 checksum How to use checksums |
aab2560c2a38e1fd77932c32616a74a8fa46dd5853916d592f86cdaa3074b1ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Security for sqlatracker 0.0.7
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.