allthethings
Various utilities augmenting the python standard library.
base_convert
base_convert(s, from_base: int, to_base: int, alphabet="0123456789abcdefghijklmnopqrstuvwxyz") -> str
class DateRange
...
at_end_of_month
at_end_of_month(d: date) -> date
Returns a date at the end of the month of the given date.
at_end_of_month(read_date('2022-02-03')) --> '2020-02-28'
at_end_of_month(read_date('2020-02-03')) --> '2020-02-29'
read_date
read_date(value: Union[date, str]) -> date
make_dsn
make_dsn(protocol: str, *, host: str, port: int, database: str, username: str, password: str) -> str
make_postgres_dsn
make_postgres_dsn(*, host: str, database: str, username: str, password: str, port: int = 5432) -> str
grouper
grouper(iterable: Iterable[U], n) -> Iterator[List[U]]
groupby
groupby(f: Callable[[U], R], xs: Iterable[U]) -> Dict[R, List[U]]
like Scala's groupby, unlike Haskell's/Python's groupby
dedup
dedup(xs: Iterable[U], on=lambda x: x) -> Iterator[U]
range_incl
range_incl(lower: E, upper: E, step: Optional[Union[Callable[[E], E], Number]] = None) -> Iterator[E]
with E = TypeVar('E', Number, date, covariant=True)
range_excl
range_excl(lower: E, upper: E, step: Optional[Union[Callable[[E], E], Number]] = None) -> Iterator[E]
with E = TypeVar('E', Number, date, covariant=True)
class Stopwatch
...
Metadata
Release files for allthethings 0.5.0
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 |
|---|---|---|---|---|
| allthethings-0.5.0.tar.gz | 9.7 kB | Without provenance | Details for allthethings-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| allthethings-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for allthethings-0.5.0-py3-none-any.whl |
Total release size: 20.4 kB
Release files / allthethings-0.5.0.tar.gz
| Download URL | allthethings-0.5.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d5e584682cc9e541c32e1e1a9ceb1edb3d468642879a43190e49487e978a5f4
|
|
BLAKE2b-256 checksum How to use checksums |
6966127f37914b69d2ebfa6c35b02f512e0e7b269c2cf3fad0e67969494a4abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5
|
Release files / allthethings-0.5.0-py3-none-any.whl
| Download URL | allthethings-0.5.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c36febd5e4a071158fc1adc0240b0c8191117689be8acf9ec213453dc28c8455
|
|
BLAKE2b-256 checksum How to use checksums |
377549e5e32bcf24e315698b1994b976fa33401c9776a2311e4183f326639581
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5
|
Security for allthethings 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.