Read Strings
Project description
readstr
Provides readstr
, a function that can read a lot of different types from strings:
from readstr import readstr
readstr('1,2,3', typing.Set[int])
readstr('foo=3,bar=10', typing.Dict[str, int])
readstr('vUfDOuQwRVavn3_QjMxp7Q', uuid.UUID)
Useful for reading arguments from command line arg, from environment variables, etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
readstr-0.2.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file readstr-0.2.1.tar.gz
.
File metadata
- Download URL: readstr-0.2.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using 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.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c97c1f3beaf8e145fab7d34806a3c95b06248c913b19e9cbeb1a9ba46549b1d9 |
|
MD5 | 2ee512e368dcecee9f34a0d891eac044 |
|
BLAKE2b-256 | 0b9059e2cb3057e299dad9046834d5e1f0850f8d15a2a3f098f9c97af249fb4f |
File details
Details for the file readstr-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: readstr-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using 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.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0336251031fb2c64d1ca7b965d5ac919633fef010b3a96f9e035162ce6dd0daa |
|
MD5 | fae5340fef29d181a98ee9c22f208bcd |
|
BLAKE2b-256 | 99150822995e06e5658c4ab95eeee32d3e50032161d7b8a5c576e94bea9043dd |