cliannelibrary-0.1.3.2
توضیحات
Python module includes useful utilities for XML processing and woring with files.Clianne Libraries
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cliannelibrary-0.1.3.2 |
| نام | cliannelibrary |
| نسخه کتابخانه | 0.1.3.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dmitry Ostroushko |
| ایمیل نویسنده | dmitrlylianne@gmail.com |
| آدرس صفحه اصلی | https://github.com/DmitryOstroushko/cliannelibrary |
| آدرس اینترنتی | https://pypi.org/project/cliannelibrary/ |
| مجوز | Apache License, Version 2.0, see LICENSE file |
# clianne library - useful python methods
    
**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](https://pypi.org/project/cliannelibrary/):
```bash
pip install cliannelibrary
```
Or from Github:
```bash
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
```python
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)
```
2) You can rename files to digital-names with mask-smaple
```python
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 ```*
```python
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](https://opensource.org/licenses/Apache-2.0)
نحوه نصب
نصب پکیج whl cliannelibrary-0.1.3.2:
pip install cliannelibrary-0.1.3.2.whl
نصب پکیج tar.gz cliannelibrary-0.1.3.2:
pip install cliannelibrary-0.1.3.2.tar.gz