Skip to main content

Testing

CouchDB

http://localhost:5984/_utils/#

  • user: admin
  • passwd: pytest

Initialization

Automatic initialization from environment

init_backend()

Manual initialization

Example for MongoDB with alias.

If missing, the default for alias is "default"

MongoDbBackend(alias="people")

client = Backend.client(alias="people")

Pagination

Usage with routers

@router.get("/people")
@pagination()
def people_get():
    return Backend.client().get_instances(PeopleModel)

Custom usage in code

pagination_params = PaginationParameterModel
with pagination_provider(pagination_params) as p:
    Backend.client().get_instances(PeopleModel)
pagination_params = PaginationParameterModel
with pagination_provider(pagination_params) as p:
    Backend.client().get_instances(PeopleModel)


pagination_params = PaginationParameterModel
with pagination_parameter_provider(pagination_params):
    objs, max_results = Backend.client().pagination_aggregate(agg)
    


return pagination_result((objs, max_results))

Metadata

Release files for pydantic-db-backend 3.4.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 pydantic-db-backend 3.4.0
File Size Uploaded Provenance Actions
pydantic_db_backend-3.4.0.tar.gz 8.6 kB Without provenance Details for pydantic_db_backend-3.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-db-backend 3.4.0
File Interpreter ABI Platform Actions
pydantic_db_backend-3.4.0-py3-none-any.whl Python 3 none any Details for pydantic_db_backend-3.4.0-py3-none-any.whl

Total release size: 20.6 kB

Release files / pydantic_db_backend-3.4.0.tar.gz

Download URL pydantic_db_backend-3.4.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e5d269d0c53260916ae7a0891b50d6e67276422fd7a28fdda91a247266fae32d
BLAKE2b-256 checksum
How to use checksums
d65e19dcd6f90205299e95dee6fc1ba7f49d1e0c240120315e4cc33403466f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.12.3 Linux/6.8.0-49-generic

Release files / pydantic_db_backend-3.4.0-py3-none-any.whl

Download URL pydantic_db_backend-3.4.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e37667f76d70cd9c0ddff77c02ca4800c0fee9e6f0faa2c7d84f710d722cb62
BLAKE2b-256 checksum
How to use checksums
a33a12ac2521d2233f1a84066f266088aa8e9f5e800c05c31c7ddb593e1803f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.12.3 Linux/6.8.0-49-generic

Security for pydantic-db-backend 3.4.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.

Release history Release notifications | RSS feed

This release

3.4.0 This release

2 release files No provenance

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