DCSV
Python module for serializing structured data to and from the Dublin Core Metadata Initiative DCSV format (Cox & Iannella, 2006).
Installation
$ pip install dscv
Usage
>>> import dcsv
>>> dcsv.dumps({'foo': 2, 'bar': 3})
'foo=2; bar=3'
>>> dcsv.loads('pi=3.14')
{'pi': 3.14}
List of dictionaries are also supported using special hierarchical keys:
>>> dcsv.dumps([{'foo': 'bar'}, {'foo': 'baz'}])
'#1.foo=bar; #2.foo=baz'
>>> dcsv.loads('#1.foo=bar; #2.foo=baz')
[{'foo': 'bar'}, {'foo': 'baz'}]
References
Cox, S. and Iannella, R. (2006) DCMI DCSV. Available at: https://www.dublincore.org/specifications/dublin-core/dcmi-dcsv/.
Metadata
Release files for dcsv 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dcsv-1.1.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dcsv-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / dcsv-1.1.1.tar.gz
| Download URL | dcsv-1.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
836250a90e77604e301e9599ae576a9aae19c8e88f11cc05bc84f853d5864d7a
|
|
BLAKE2b-256 checksum How to use checksums |
5f594202972895b7067fdf373e146595941cca85615bf57da2304b0ee72b3c41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / dcsv-1.1.1-py3-none-any.whl
| Download URL | dcsv-1.1.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f6ac9d0ec7b9496dadce9b1f3aaf33636e3c2ba328eb451e94f3a2f9442b29d
|
|
BLAKE2b-256 checksum How to use checksums |
3183e050b4ea02cb58f172a1e983c6b07dbd79750335897dbe52ac754d483523
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|