Skip to main content

A project to parse klarf file and get klarf content as dataclass

Project description

The klarf-reader library is a python 3 lib that allow to parse and get klarf content as dataclass.

Installing Karf-Reader

To install klarf-reader, if you already have Python, you can install with:

pip install klarf-reader

How to import Karf-Reader

To access klarf-reader and its functions import it in your Python code like this:

from klarf_reader.klarf import Klarf

Reading the example code

To reader a klarf file you just have to give the klarf path and klarf-reader will return you an instance of KlarfContent that contains information from klarf file.

path = Path('wd') / 'my_klarf_file'

content = Klarf.load_from_file(filepath=path)

You can also get raw contents from file.

path = Path('wd') / 'my_klarf_file'

content, raw_content = Klarf.load_from_file_with_raw_content(filepath=path)

Project details


Download files

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

Source Distribution

klarf-reader-0.4.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

klarf_reader-0.4.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file klarf-reader-0.4.3.tar.gz.

File metadata

  • Download URL: klarf-reader-0.4.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for klarf-reader-0.4.3.tar.gz
Algorithm Hash digest
SHA256 dd2fb96726bb540c98b1e85b8fca3247a558e90bd277557c0085d64298474171
MD5 412ec67a577d74684a0aff2eb1c9ace2
BLAKE2b-256 7940ac2aff09ff6431e86e9eaf13b6d428bce9604cfff3fc0015ed11a11b0eaa

See more details on using hashes here.

File details

Details for the file klarf_reader-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for klarf_reader-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4b6562263c32f248d43197ce69ebae415157d15449d0704c638ab8b06d75782c
MD5 440d520c9df92417ebd69691956af703
BLAKE2b-256 4d860b0a1e1673330707d615179dd6f6dfa7db6f7dd992b52b5c5775f83fe230

See more details on using hashes here.

Supported by

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