Skip to main content

flake8 Lint Test codecov

acdh-cidoc-pyutils

Helper functions for the generation of CIDOC CRMish RDF

Usage

  • install via pip install acdh-cidoc-pyutils

date-like-string to casted rdflib.Literal

from acdh_cidoc_pyutils import date_to_literal
dates = [
    "1900",
    "1900-01",
    "1901-01-01",
    "foo",
]
for x in dates:
    date_literal = date_to_literal(x)
    print((date_literal.datatype))

# returns
# http://www.w3.org/2001/XMLSchema#gYear
# http://www.w3.org/2001/XMLSchema#gYearMonth
# http://www.w3.org/2001/XMLSchema#date
# http://www.w3.org/2001/XMLSchema#string

development

  • pip install -r requirements_dev.txt
  • flake8 -> linting
  • coveage run -m pytest -> runs tests and creates coverage stats

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acdh_cidoc_pyutils-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acdh_cidoc_pyutils-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file acdh_cidoc_pyutils-0.1.1.tar.gz.

File metadata

  • Download URL: acdh_cidoc_pyutils-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for acdh_cidoc_pyutils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 81dc4493c231250099a953200ef057089ffc61b2780c47d73cb0777d6aca4b4e
MD5 19f2a5ea16d64e3255c7e892f5d73c86
BLAKE2b-256 c16427df6c66abc4e20f62fad9d2e3d1668856905cf0aebd21b14e7071cbfc24

See more details on using hashes here.

File details

Details for the file acdh_cidoc_pyutils-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for acdh_cidoc_pyutils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0556d22e09aa83d623011ef7ea454f54270221945059ca8e18f3a8ad98005629
MD5 5619bdf9739b891a0519dc91af2afe0f
BLAKE2b-256 9aa9783bd429ed37052c1b02e9f4e5a893add5807c43c498ed0e835a4e9557de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page