semvec/pypi-packages huggingface dataset:
lxml-to-dict 0.1.2
A simple conversion of an lxml.objectify element to a python dictionary.
Keywords: lxml,dict,dictionary,lxml.objectify,convert

|Build Status|

lxml to dict
============

`Package on Pypi <https://pypi.org/project/lxml-to-dict/>`__

A simple conversion of an lxml.objectify element to a python dictionary.

Usage
-----

.. code:: python

    >>> from lxml_to_dict import lxml_to_dict
    >>> 
    >>> lxml_to_dict(<the lxml.objectfy.Element>)
    >>>
    >>> root = objectify.Element("root")            # <root></root>
    >>> b = objectify.SubElement(root, "b")         # <root><b></b></root>
    >>> b = objectify.SubElement(root, "b")         # <root><b></b><b></b></root>
    >>> a = objectify.SubElement(root, "a")         # <root><b></b><b></b><a></a></root>
    >>> lxml_to_dict(root)                          # {'root': {'b': None, 'b1': None, 'a': None}}

Test
----

You can run the tests using
`tox <https://tox.readthedocs.io/en/latest/>`__

.. code:: shell

    tox

Publish
-------

To publish a new version of this package your Pypi user needs to be
added to the project. (Ask Connor to give you access)

.. code:: shell

    # Update version number in setup.py

    python setup.py sdist
    twine upload dist/*

.. |Build Status| image:: https://travis-ci.org/CRiva/lxml_to_dict.svg?branch=master
   :target: https://travis-ci.org/CRiva/lxml_to_dict
distlre 0.0.4
A Python package to distribute commands on remote hosts viaSSH and to execute them locally in parallel.

# DistLRE (dist-el-ar-ee)

A lightweight Python package to distribute commands on remote hosts via SSH and to execute them locally in parallel.

Supports running a local commands:

```python
from distlre.distlre import DistLRE, Task, RemoteHost
executor = DistLRE(local_threads=1)

task = Task(command='ls ~', meta='META', time_limit=10, memory_limit=10)
future = executor.submit(task)
executor.execute_tasks()
executor.wait()
print(future.result().output)
```

Or runs command on a remote host:

```python
import getpass
password = getpass.getpass("Password to connect to [localhost]:")
executor = DistLRE(remote_hosts=[RemoteHost('localhost', port=31415, password=password)])

task = Task(command='ls ~', meta='META', time_limit=10, memory_limit=10)
other_task = Task(command='cd ~', meta='META', time_limit=10, memory_limit=10)
future = executor.submit(task)
other_future = executor.submit(other_task)
executor.execute_tasks()
executor.wait()
print(future.result().output)
```

# Install

`pip3 install DistLRE`
pyTexecom 0.2.1
Texecom Interface Libary

# pytexecom

This project is an attempt to create a python libary for communicating with Texecom Premier Elite Alarms Panels. The plugin is designed to be connected to COM port 2 on the panel with the following configuration

Mode: Crestron 
Speed: 19200
Data Bits: 8 
Stop Bits: 1
Parity: None

The alarm panel communicates with the libary on every state change. The libary implements a callback for devices so they can be notifed of changes.
daydreamer 0.0.17
Daydreamer Nick API Python wrapper

# pinnacle
Python Wrapper for Pinnacle Sports API

[Pinnacle Documentation](https://www.pinnacle.com/en/api/manual)

# Installation

```
$ pip install pinnacle
```

# Usage

```python
>>> from pinnacle.apiclient import APIClient
>>> api = APIClient('username', 'password')
>>> sport_ids = api.reference_data.get_sports()
>>> tennis_events = api.market_data.get_fixtures(33)
```
sitemap-builder 0.0.1
Generate sitemaps from programmatically collected URLs

# Sitemap Builder

Generate sitemaps from programmatically collected URLs.

# Features

- Generates an index that points to compressed sitemaps files
- each generated sitemap won't have more than the allowed amount of
  50.000 URLs
- jinja2 templates

# Install

~~~
pip install sitemap-builder
~~~

# Usage

1. Import 

~~~
from sitemap import Sitemap
~~~

2. Initialize

~~~
sitemap = Sitemap()
~~~

3. Add urls to process them later:

~~~
sitemap.add_url("dummy-page")
sitemap.add_url("another-page")
sitemap.add_url("category/foo-bar")
~~~

4. Generate sitemap index and files

~~~
sitemap.generate()
~~~

# Example:

Generated files:

~~~
.
├── sitemap.xml
└── sitemaps
    ├── sitemap-0.xml.gz
    ├── sitemap-1.xml.gz
    ├── sitemap-2.xml.gz
	└── sitemap-3.xml.gz
~~~