Skip to main content

SQLAlchemy Fields

Build Status Publish Status Coverage Package version Supported Python versions


Documentation: https://aminalaee.dev/sqlalchemy-fields

Source Code: https://github.com/aminalaee/sqlalchemy-fields


Table of Contents

Installation

pip install sqlalchemy-fields
pip install 'sqlalchemy-fields[full]'

Custom Types

  • EmailType
  • FileType
  • ImageType
  • IPAddressType
  • URLType
  • UUIDType
from sqlalchemy import Column, Integer, create_engine
from sqlalchemy.orm import Session, declarative_base
from sqlalchemy_fields.types import IPAddressType


Base = declarative_base()
engine = create_engine("sqlite:///example.db")


class Example(Base):
    __tablename__ = "example"

    id = Column(Integer, primary_key=True)
    ip = Column(IPAddressType)


example = Example(ip="127.0.0.1")
with Session(engine) as session:
    session.add(example)
    session.commit()
    print(example.ip)
"""
IPv4Address("127.0.0.1")
"""

Storages

  • FileSystemStorage
  • S3Storage

Metadata

Release files for sqlalchemy-fields 0.5.0

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

Source distribution (sdist)

Source distribution for sqlalchemy-fields 0.5.0
File Size Uploaded Provenance Actions
sqlalchemy_fields-0.5.0.tar.gz 8.1 kB Without provenance Details for sqlalchemy_fields-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sqlalchemy-fields 0.5.0
File Interpreter ABI Platform Actions
sqlalchemy_fields-0.5.0-py3-none-any.whl Python 3 none any Details for sqlalchemy_fields-0.5.0-py3-none-any.whl

Total release size: 20.0 kB

Release files / sqlalchemy_fields-0.5.0.tar.gz

Download URL sqlalchemy_fields-0.5.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b30022d73b69696f1e76bddfce55d59555361c25a4be572efa87a22f237349ec
BLAKE2b-256 checksum
How to use checksums
ebe53235a01aef002472a741c43ecbc9337c192d66f7aa64d78ceaf3f9908ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Release files / sqlalchemy_fields-0.5.0-py3-none-any.whl

Download URL sqlalchemy_fields-0.5.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
601298a808b3d873224a8dd1febc774e58f720556c3f995a5975e77195b55408
BLAKE2b-256 checksum
How to use checksums
b628b60ce2d69be492dfffa1b6bec7657f15b02b25ec676a1736fc9429b2e2de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Security for sqlalchemy-fields 0.5.0

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