========
A small python utility which parses nested-keys in dictionaries into sub-dictionaries.
####Installation
This package can be installed from PyPI using `pip`. Make sure you have `pip` installed
then run:
```
$ pip install subdicts
```
#####Installation Using Buildout
If you're using __Buildout__ and want to use __subdicts__ you can do so by adding the
following lines to your `buildout.cfg` file:
```
[subdicts]
recipe = zc.recipe.egg
eggs = subdicts
```
and appending `subdicts` to your `buildout:parts`.
####Usage
This package has one method, `subdicts.utils.parse`, which does the parsing.
```
from subdicts.utils import parse
dict = {'person[firstname]': 'arnelle', 'person[lastname]': 'balane'}
parsed = parse(dict)
# parsed = {'person': {'firstname': 'arnelle', 'lastname': 'balane'}}
```
####Contributing
To contribute to this mini-project just fork this repository, clone your forked repository
and run buildout inside the project directory.
```
$ git clone git@github.com:arnellebalane/subdicts.git
$ cd subdicts
$ ./bin/buildout
```
This will take care of retrieving the project's dependencies.
When contributing new code to the project, please test your code. The test files are
located inside the `src/subdicts/tests` directory. To run the tests simply do:
```
$ ./bin/test
```
Merging your code into this main repository must be done through pull requests.
####Bugs and Issues
If you find any bugs and issues in this project, please report them by opening an
issue here.
####Todo
- properly parse compicated dictionary keys, especially those containing inner `[` and
`]` characters (e.g. `person[name[]]`)
Metadata
Release files for subdicts 1.0.3
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 |
|---|---|---|---|---|
| subdicts-1.0.3.tar.gz | 2.7 kB | Without provenance | Details for subdicts-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subdicts-1.0.3-py2.7.egg | Legacy Egg format | - | - | Details for subdicts-1.0.3-py2.7.egg |
Total release size: 7.8 kB
Release files / subdicts-1.0.3.tar.gz
| Download URL | subdicts-1.0.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3e194f36ede356fa662745e67e0ae990452095b7d684b1ba547ffa1381076c0
|
|
BLAKE2b-256 checksum How to use checksums |
f1dc9bf0f1fefdf8f54b9968f3fa6fd8be10e5a0143504aa98d4a7fe39f0199a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / subdicts-1.0.3-py2.7.egg
| Download URL | subdicts-1.0.3-py2.7.egg |
|---|---|
| Size | 5.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
0ca9f85baf782aeece5d62003e88185da8149be81884d44bb7712ba74684b784
|
|
BLAKE2b-256 checksum How to use checksums |
52171cffabc7cc99efcedd867370fd836aeb09f71d110bf1b1dfca43f2434a59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for subdicts 1.0.3
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.