Skip to main content

Python module includes useful utilities for XML processing and woring with files.Clianne Libraries

Project description

clianne library - useful python methods

PyPI Python 3.6, 3.7, 3.8 GitHub Pull Requests License Forks

Clianne Library - this project is a Python client library which includes useful methods on different topics:

  • processing XML resources
  • custom functions for working with files

Installation

Install the current version with PyPI:

pip install cliannelibrary

Or from Github:

pip install https://github.com/DmitryOstroushko/cliannelibrary/archive/main.zip

Usage

  1. XML processing
    You can create XMLLibrary instance based on XML file, and then use it to modify XML structure with operarions:
  • ADD
  • MODIFY
  • DELETE
xml_structure = XMLLibrary('file.xml')

xml_structure.set_xml_node_to_modify(tag='xml_tag',
                                     attrib_dict={'attr_1': 'test_1',
                                                  'attr_2': 'test_2'}
                                     node_value='text'
                                    )
xml_structure.do_modify_xml(3)
  1. You can rename files to digital-names with mask-smaple
mask: str ='*'
start_number: int = 20210300
FileLibrary().rename_file_by_mask(False, mask, start_number)

Example

Create a new Story in the first Project that is returned from the API in the all projects list.

If you installed a module from PyPi, you should to import it like this: from cliannelibrary.xml_library import XMLLibrary

If from GitHub or source: to be done

from from cliannelibrary.xml_library import XMLLibrary
from from cliannelibrary.file_library import FileLibrary

Example to be done

Contributing

Bug reports and/or pull requests are welcome

License

The module is available as open source under the terms of the Apache License, Version 2.0

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

cliannelibrary-0.1.3.2.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file cliannelibrary-0.1.3.2.tar.gz.

File metadata

  • Download URL: cliannelibrary-0.1.3.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for cliannelibrary-0.1.3.2.tar.gz
Algorithm Hash digest
SHA256 f030ce61b3c37c9472a9b138b46a3ce5baaff838b08c6694372d92d57cdae5cd
MD5 e1f29b24daad4b951baa74b233730d81
BLAKE2b-256 1121fcad64f4fae04654fa8482f0f5aaed03a137ca68e9863e47dbd6abdee23f

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