PydKit
Extended kit and tools for pydantic, to enjoy pydantic even more!
- Github repository: https://github.com/manimozaffar/pydkit/
Contribution
I'll work on this library in few months, i don't have free time right now, but feel free to contribute. I'll check and test the PRs myself!
Features
Use case of CSV read/write would be:
- Saving to a CSV file
from pydkit import csv
from pydantic import BaseModel
class User(BaseModel):
id: int
name: str
users = [
User(id=1, name="Alice"),
User(id=2, name="Abbas"),
]
csv.save("file.csv", users)
- Reading from a CSV file
from pydkit.csv import read, StrNone
from pydantic import BaseModel
class User(BaseModel):
id: int
name: str
last_name: None | StrNone = None
# StrNone helps you with reading from csv files!
users = csv.read("file.csv", User) # now user is list of User
- Type extensions -> Auto converter types
from pydkit.timezones import UTCTime
class User(BaseModel):
created_at: UTCTime
now if you use this model, it'll convert timezones to UTC automatically in your FastAPI application or else, you can also write custom validation
from pydkit.timezones import UTCBiggerThanNow
class User(BaseModel):
future_ts: UTCBiggerThanNow
Metadata
Release files for pydkit 0.0.2
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 |
|---|---|---|---|---|
| pydkit-0.0.2.tar.gz | 4.1 kB | Without provenance | Details for pydkit-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydkit-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for pydkit-0.0.2-py3-none-any.whl |
Total release size: 9.2 kB
Release files / pydkit-0.0.2.tar.gz
| Download URL | pydkit-0.0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d27f3743dc30c4ba7add1dc3462f0096640ee874ab26921ca09a7e34ae94ff84
|
|
BLAKE2b-256 checksum How to use checksums |
87426eff3c2cc73f6d4088369cc13d6cb558ff90d529c68728d6bd587eff36c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure
|
Release files / pydkit-0.0.2-py3-none-any.whl
| Download URL | pydkit-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73078d3de4533b02246e6268eb78c14e010157d6e0856a6e2dd1bb371d06aad2
|
|
BLAKE2b-256 checksum How to use checksums |
d90d1490f781f97a136bb7cf836bcc24c3f1e139e183bf12d137fe9e2459e8a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure
|
Security for pydkit 0.0.2
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.