semvec/pypi-packages huggingface dataset:
record-ip-to-dnspod 0.1.1
Record IP Via DNSPod API.
License: MIT

record-ip-to-dnspod
===================

Record machine's ip to DNSpod via `DNSPod's API`_.

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

To install::

    pip install record-ip-to-dnspod


Example Usage
-------------

Command::

    record-ip-to-dnspod -c /path/record-ip.ini


If you wan't install via pip, you can::

    git clone https://github.com/codeif/record-ip-to-dnspod.git
    cd record-ip-to-dnspod && python -m record_ip_to_dnspod.bin -c /path/record-ip.ini


Config Example
--------------

ini文件::

    [record-ip]
    log-path = record-ip.log
    token = 1234,your-token-str
    email = me@codeif.com
    domain = example.com
    sub-domain = test
    ; interface = eth0
    ; exclude-ips = 127.0.0.1,172.16.0.1


Config Options
--------------

- 必填配置项

===========     ================================================================
配置项          说明
===========     ================================================================
log-path        日志路径
token           Token_, 例如：13490,6b5976c68aba5b14a0558b77c17c3932&format=json
email           联系邮箱，用于API请求的User-Agent.
domain          域名， 例如： example.com
sub-domain      主机记录, 如 www，可选，如果不传，默认为 @
===========     ================================================================


- 可选配置项

===========     ================================================================
配置项          说明
===========     ================================================================
interface       只记录指定的网卡，例如: eth0
excluet-ips     不记录下面的ip， 比如'127.0.0.1,172.16.0.1'
===========     ================================================================


.. _Token: https://support.dnspod.cn/Kb/showarticle/tsid/227
.. _DNSPod's API: http://www.dnspod.cn/docs/index.html
generic-utils 0.20.0
A set of generic utility classes and helper functions for Python development.
License: MIT

========
Overview
========

.. start-badges

.. list-table::
    :stub-columns: 1

    * - package
      - |version|


.. |version| image:: https://img.shields.io/pypi/v/generic_utils.svg?style=flat
    :alt: PyPI Package latest release
    :target: https://pypi.python.org/pypi/generic_utils

.. end-badges

A set of generic utility classes and helper functions for Python  development.

generic_utils is a set of generic Python utilities which currently target
Python 2.7.X environments with no other required dependencies.  The code
targets both general production code as well as test utilities to facilitate
easier test generation, management and complexity.

This library is not currently intended to be generally useful to the community at
large as there is work to be done to provide greater Python support as well as
general documentation and upkeep, but has been used successfully in production
environments within the prescribed environments.



Installation
============

::

    pip install generic_utils


Development
===========


Install requirements into a local virtualenv::

    virtualenv env
    env/bin/pip install -e ".[html,cassandra,celery_test,test_utils]"


This project requires available cassandra and redis hosts in order to run the full test-suite.

Redis Setup::

    docker run -d --name test-redis -p 6379:6379 -v /path/to/storage/redis:/data redis

Connect to the container::

    $ docker exec -i -t test-redis /bin/bash
    $ root@7a3377df67f0:/data# redis-cli
    127.0.0.1:6379> SET __THIS_IS_A_TEST_INSTANCE__ True
    OK
    127.0.0.1:6379> exit

Cassandra Setup::

    $ docker run --name test-cassandra -d -p 9042:9042 -p 7000:7000 -v /path/to/storage/cassandra:/var/lib/cassandra cassandra:3.0

Connect to the container::

    $ docker exec -i -t test-cassandra /bin/bash

Open cqlsh and create the python_utils_test keyspace::

    $ cqlsh
    > CREATE KEYSPACE python_utils_test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1} AND DURABLE_WRITES = true;


Configure Cassandra cluster in `tests/local_settings.py` (not in version-control). Replace the values with appropriate
values for your environment::

    CQLENGINE = {
        "TEST_CLUSTER": {
            ConfigKey.CONTACT_POINTS: get_config_value("TEST_CASSANDRA_CONTACT_POINTS", default=["localhost"]),
            ConfigKey.KEYSPACE: get_config_value("TEST_CASSANDRA_KEYSPACE", "python_utils_test"),
            ConfigKey.PORT: get_config_value("TEST_CASSANDRA_PORT", default=9042),
            ConfigKey.USERNAME: get_config_value("TEST_CASSANDRA_USERNAME", default=""),
            ConfigKey.PASSWORD: get_config_value("TEST_CASSANDRA_PASSWORD", default=""),
            ConfigKey.DEFAULT_TIMEOUT: EXPLICTLY_NOT_10_SECONDS_TIMEOUT
        }
    }

Run the test suite::

    nosetests tests

Or, using tox::

    tox
rdp 0.8
Pure Python implementation of the Ramer-Douglas-Peucker algorithm
License: MIT
Keywords: rdp ramer douglas peucker line simplification numpy

Ramer-Douglas-Peucker Algorithm
-------------------------------

.. image:: https://travis-ci.org/fhirschmann/rdp.png?branch=master
   :target: https://travis-ci.org/fhirschmann/rdp

.. image:: https://badge.fury.io/py/rdp.png
   :target: http://badge.fury.io/py/rdp

.. image:: https://readthedocs.org/projects/rdp/badge/?version=latest
   :target: http://rdp.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

Python/NumPy implementation of the Ramer-Douglas-Peucker algorithm
(Ramer 1972; Douglas and Peucker 1973) for 2D and 3D data.

The Ramer-Douglas-Peucker algorithm is an algorithm for reducing the number
of points in a curve that is approximated by a series of points.

Installation
````````````

.. code:: bash

    pip install rdp

Usage
`````

Simple pythonic interface:

.. code:: python

    from rdp import rdp

    rdp([[1, 1], [2, 2], [3, 3], [4, 4]])

.. code:: python

    [[1, 1], [4, 4]]

With epsilon=0.5:

.. code:: python

    rdp([[1, 1], [1, 1.1], [2, 2]], epsilon=0.5)

.. code:: python

    [[1.0, 1.0], [2.0, 2.0]]

Numpy interface:

.. code:: python

    import numpy as np
    from rdp import rdp

    rdp(np.array([1, 1, 2, 2, 3, 3, 4, 4]).reshape(4, 2))

.. code:: python

    array([[1, 1],
           [4, 4]])

Links
`````

* `Documentation <http://rdp.readthedocs.io/en/latest/>`_
* `GitHub Page <http://github.com/fhirschmann/rdp>`_
* `PyPI <http://pypi.python.org/pypi/rdp>`_

References
``````````

Douglas, David H, and Thomas K Peucker. 1973. “Algorithms for the Reduction of the Number of Points Required to Represent a Digitized Line or Its Caricature.” Cartographica: The International Journal for Geographic Information and Geovisualization 10 (2): 112–122.

Ramer, Urs. 1972. “An Iterative Procedure for the Polygonal Approximation of Plane Curves.” Computer Graphics and Image Processing 1 (3): 244–256.