1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
pyconstring
Tool to handle connection strings. Offers an easy API that parses and constructs connection strings in the form of Key=Value;, as easy as handling a dictionary. Works with both Python 2.7 and 3.x
License
MIT. See License File.
Install
pyconstring is on PyPI
pip install pyconstring
or
easy_install pyconstring
Usage examples
Constructing a connection string from scratch:
>>> from pyconstring import ConnectionString
>>> cs = ConnectionString()
>>> cs['user'] = 'manuel'
>>> cs['password'] = '1234'
>>> print cs.get_string()
User=manuel;Password=1234;
Parsing an already existing string:
>>> cs = ConnectionString.from_string('key1=value1;key2=value2;')
>>> cs['key1'] = 'another value'
>>> cs.get_string()
u'Key1=another value;Key2=value2;'
>>> cs['user'] = 'johnny'
>>> print cs.get_string()
Key1=another value;Key2=value2;User=johnny;
Automated escaping when necessary:
>>> cs = ConnectionString()
>>> cs['weird=key'] = '" weird;value '
>>> print cs.get_string()
Weird==Key='" weird;value ';
Key translation:
>>> cs['key'] = 'value'
>>> cs.translate({'key': 'clave'})
>>> print cs.get_string()
Clave=value;
More information in the documentation.
If you find any bug or have any suggestion, feel free to send me an email or open an issue on github.
Metadata
Release files for pyconstring 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyconstring-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / pyconstring-1.0.0-py2.py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyconstring-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e499efbb4a2f6b572ab89665ad4e8c51b7099498681e4713cfed65ffb29bec75
|
|
BLAKE2b-256 checksum How to use checksums |
342973f4016bdedabd5beba65c8caee0673c2303e3ceb06fce0b95551793410c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyconstring 1.0.0
Upload timing
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
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.