SSB Altinn Python
Project description
SSB Altinn Python
Features
This is work-in-progress Python-package for dealing with xml-data from Altinn3.
from altinn import FileInfo
form = FileInfo(
"gs://ssb-prod-dapla-felles-data-delt/altinn3/form_dc551844cd74.xml"
)
# Get file filename without '.xml'-postfix
form.filename()
# Returns: 'form_dc551844cd74'
# Print a nicely formatted version of the file
form.pretty_print()
Requirements
- dapla-toolbelt >=1.6.2,<2.0.0
- defusedxml >=0.7.1,<0.8.0
- pytest >=7.2.2,<8.0.0
Installation
You can install SSB Altinn Python via [poetry] from PyPI:
poetry add ssb-altinn-python
To install this in the Jupyter-environment on Dapla, where it is ment to be used, it is required to install it in an virtual environment. It is recommended to do this in an ssb-project where the preferred tool is poetry.
Usage
Please see the Command-line Reference for details.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, SSB Altinn Python is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ssb_altinn_python-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d1125f3e6f751c62f5ab095bc6575bc735fed99e17bf63701d250e8f7525889 |
|
MD5 | 2b459d1b662dff0f0f8c56d0f13c6dd9 |
|
BLAKE2b-256 | 40afefc72a93c0104b3c73d5ad2705d0d5f4f3f5f0365c07332a7c15d6c3d51d |