semvec/pypi-packages huggingface dataset:
sysdfiles 0.2.0
systemd configuration file access
License: MIT
Keywords: systemd configuration file files automount conf device hostname hosts ini link machine-id machine-info mount network os-release path scope service slice socket swap target timer unit

# Classes for Accessing the systemd Configuration Files

A collection of classes for accessing the systemd configuration files.

Only tested with Python 3.6 on Debian 9.5.

## Installation

pip install sysdfiles

## Documentation

* [Wiki](https://github.com/ShawnBaker/sysdfiles/wiki)
* [Release Notes](https://github.com/ShawnBaker/sysdfiles/blob/master/release-notes.md)

## Usage

```
from sysdfiles import NetworkFile

network = NetworkFile('/etc/systemd/network/lan.network')
print(network.match_name)
print(network.match_mac_address)
network.network_dhcp = ['8.8.8.8', '8.8.4.4']
network.network_dhcp_server = True
network.dhcp_server_emit_dns = True
network.dhcp_server_dns = '192.168.0.1'
network.route_metric = 10
network.save()
```

## Copyright and License

Copyright &copy; 2018 Shawn Baker using the [MIT License](https://opensource.org/licenses/MIT).
chinesenumber 0.1.1
Convert Chinese (or Japanese) numbers to numeric digits (21)
License: MIT
Requires Python: >=3

# ChineseNumber

Convert Chinese (or Japanese) numbers (e.g. 二十一) to numeric digits (21).

Similar in idea to https://github.com/akshaynagpal/w2n

The resulting numbers can be sorted using https://github.com/SethMMorton/natsort

## Usage

```pydocstring
>>> from chinesenumber import NumberParser
>>> parser = NumberParser()
>>> parser.numberify('第二十二课')
'第22课'
>>> parser.simple_parse('百六十五')
165
```

## Installation

```
pip install chinesenumber
```
skyrunner 0.0.4
Skyrunner scrapes with json definition
License: MIT

Skyrunner
===========


Introduction
--------------
Skyrunner scrapes with json definition


Installation
--------------
.. code-block:: sh

   $ pip install skyrunner


How to use
--------------

1) Import skyrunner package at your project.
2) You define steps of scraping in json file.
3) You create class for share on scraping tasks and define `self.attributes = dict()` at constructor.

.. code-block:: python

   class TaskSharedData:
       def __init__(self):
           self.attributes = dict()

4) You call `skyrunner.setup_task_manager('scraping_steps_defined.json', TaskSharedData())` at your program.


sample of Scraping task definition json
------------------------------------------
.. code-block:: json

   {
      "description": "tasks description",
      "driver": {
        "name": "webdriver",
        "browser": "firefox"
      },
      "tasks": [
        {
          "description": "access to google",
          "action": "link",
          "params": {
            "url": "https://google.com"
          }
        },
        {
          "description": "search for mileshare",
          "action": "input",
          "params": {
            "type": "id",
            "path": "lst-ib",
            "data": "mileshare"
          }
        },
        {
          "description": "search(press the enter key)",
          "action": "enter",
          "params": {
            "type": "id",
            "path": "lst-ib"
          }
        }
      ]
    }

other support actions
=======================

- click

.. code-block:: json

    {
      "description": "click task",
      "action": "click",
      "params": {
        "type": "id or xpath",
        "path": "target id or xpath"
      }
    }

- custom

.. code-block:: json

   {
      "description": "custom task for complex process, update the shared data etc..",
      "action": "custom",
      "params": {
        "type": "python",
        "script_file": "custom python script(class) path",
        "class_name": "custom python class name"
      }
    }

- shared_input

.. code-block:: json

    {
      "description": "shared input task",
      "action": "shared_input",
      "params": {
        "type": "id or xpath",
        "path": "target id or xpath",
        "data": "dict key of shared data"
      }
    }
xxtea-py 1.0.3
XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Python. It is based on CFFI, so it is fast and support both cpython and pypy.
License: MIT
Keywords: xxtea crypt encrypt decrypt xtea tea

XXTEA for Python
================

.. image:: https://travis-ci.org/xxtea/xxtea-python.svg?branch=master
   :target: https://travis-ci.org/xxtea/xxtea-python

.. image:: https://img.shields.io/pypi/v/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

.. image:: https://img.shields.io/pypi/l/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

.. image:: https://img.shields.io/pypi/pyversions/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

.. image:: https://img.shields.io/pypi/implementation/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

.. image:: https://img.shields.io/pypi/status/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

.. image:: https://img.shields.io/pypi/dm/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

.. image:: https://img.shields.io/pypi/dw/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

.. image:: https://img.shields.io/pypi/dd/xxtea-py.svg
   :target: https://pypi.python.org/pypi/xxtea-py

Introduction
------------

XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Python.

It is based on CFFI, so it is fast and support both cpython and pypy.

It is different from the original XXTEA encryption algorithm. It encrypts and decrypts raw binary data instead of 32bit integer array, and the key is also the raw binary data.

Installation
------------

::

    pip install xxtea-py


Usage
-----------

Python2:

.. code-block:: python

    import xxtea
    text = "Hello World! 你好，中国！"
    key = "1234567890"
    encrypt_data = xxtea.encrypt(text, key)
    decrypt_data = xxtea.decrypt(encrypt_data, key)
    print(text == decrypt_data);


Python3:

.. code-block:: python

    import xxtea
    text = "Hello World! 你好，中国！"
    key = "1234567890"
    encrypt_data = xxtea.encrypt(text, key)
    decrypt_data = xxtea.decrypt_utf8(encrypt_data, key)
    print(text == decrypt_data);