Skip to main content

Python AutoData

Overview

This is auto allocate dict and list like Perl.

import autodata

d = autodata.autodict()
d["key1"]["key2"] = "val" # => d["key1"] == {"key2": "val"}
d["key2"] += 1            # => d["key2"] == 1
d["key3"][2] = 1          # => d["key3"] == [None, None, 1]

Restriction

  • The type of dict key is only strings.

  • Dict item is not allocated by dict.get method.

  • None value is not returned by autolist[number]. Instead, an emptyitem object is returned.

Known issues

d = autodata.autodict()
a = d["key"]
a += 1  # => d == {"key" : 1}
a += 1  # => d == {"key" : 1}

Metadata

Release files for autodata 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autodata 0.12
File Size Uploaded
autodata-0.12.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autodata 0.12
File Interpreter ABI Platform
autodata-0.12-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / autodata-0.12.tar.gz

Download URL autodata-0.12.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
21f8ac16c4464d962801bbd84bd333402a9ad954adf5d2a021e97f453beb63b7
BLAKE2b-256 checksum
How to use checksums
41e3116751a0266a8bf28fae88b6283a1af48be84227c56a4bcd3d8afe34c2a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / autodata-0.12-py3-none-any.whl

Download URL autodata-0.12-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c357c6c9fd00ba3aef3c9fdb448d4ffdc66ad9c0b3f89ac3ead7932de919d78
BLAKE2b-256 checksum
How to use checksums
ef844de040a0458f71ae12770d11cc367302da22adcef4ce6f9c4536b4bcc384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files

0.11

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page