semvec/pypi-packages huggingface dataset:
pyhipku 0.2.2
Encode any IP address as a haiku
License: MIT
Keywords: ip haiku

PyHipku
=======

|Latest Version| |Build Status| |Coverage Status|

A tiny python library to encode IPv6 and IPv4 addressed as haiku. This a
python port of `hipku`_\ (javascript).

Install
-------

::

    $ pip install pyhipku

Usage
-----

Encode the IP address to haiku

::

    >>> from pyhipku import encode
    >>> print(encode('127.0.0.1'))
    The hungry white ape
    aches in the ancient canyon.
    Autumn colors crunch.

Decode haiku to IP address

::

    >>> from pyhipku import decode
    >>> decode('The hungry white ape\naches in the ancient canyon.\nAutumn colors crunch.\n')
    '127.0.0.1'

Run the tests
-------------

::

    $ pip install nose coveralls
    $ nosetests -v --with-coverage --cover-package=pyhipku

About the website
-----------------

The source code for the demo is `here`_.

License
-------

MIT

.. _hipku: https://github.com/gabemart/hipku
.. _here: https://github.com/lord63/pyhipku_web

.. |Latest Version| image:: http://img.shields.io/pypi/v/pyhipku.svg
   :target: https://pypi.python.org/pypi/pyhipku
.. |Build Status| image:: https://travis-ci.org/lord63/pyhipku.svg
   :target: https://travis-ci.org/lord63/pyhipku
.. |Coverage Status| image:: https://coveralls.io/repos/lord63/pyhipku/badge.svg
   :target: https://coveralls.io/r/lord63/pyhipku
prestaorm 0.0.4
Access to prestashop API using django similar ORM Syntax
License: MIT

PRESTASHOP Apis based on django ORM
=====================================

What's that?
-----------

Is a library to connect with the apis of a prestashop website.


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

In a similar way to django orm

Using it 
---------------

.. code-block:: python
   
   # Configure
   from prestaorm import Api
   Api.config(url, key)
                
   # Use the api
   from prestaorm.models import Product
                
   # Get a list of instances of products
   products = Product.objects.filter(name="Product%").sort_by("name")

   # Get one instance
   product, _ = Product.objects.get_or_create(name="Product1", reference="REF1")                
   product.price = 8  
   product.save()             


Work in progress
-------------------
This is a work in progress. I'm implementing only the models that I would need. Extra help is welcome.
onepagecrm 0.1.1
Connect and interface with the OnePageCRM REST API
License: MIT

===============================
OnePageCRM Python Client
===============================

Connect and interface with the OnePageCRM REST API

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

::

    pip install onepagecrm

Usage
=====

The first thing to do is to set up your client

.. code-block:: python

    from onepagecrm import OnePageCRMAPI, RequestError, UnknownError
    client = OnePageCRMAPI.login(username, password)

    # If you don't want to store the username and password. After you have a
    # working client you can do the following
    user_id = client.user_id
    api_key = client.api_key
    # Save these for later then to create a client
    client = OnePageCRMAPI(user_id, api_key)

Once you have your client set up you can start making requests.

Getting data:

.. code-block:: python

    contacts = client.get('contacts')['contacts']

    # Limit returned data
    email_addresses = []
    for contact in client.get('contacts', fields='emails', sparse=True)['contacts']:
        emails = contact['contact'].get('emails')
        if emails:
            email_addresses.extend([e.get('value') for e in emails])

    # Filter data
    contacts = client.get('contacts', if_modified_since='2014-07-10')

    # Paginate
    contacts = client.get('contacts', page=2, per_page=25)

    # Sorting and Ordering
    contacts = client.get('contacts', sort_by='modified_at', order='asc')


Create new resources:

.. code-block:: python

    contact = client.post('contacts', {'first_name': 'Michael',
                                       'last_name': 'Fitzgerald',
                                       'company_name': 'OnePageCRM'})['contact']
    contact_id = contact['id']

    text = 'Had a meeting today in cafe 47 with Michael to discuss new features'
    note = client.post('notes', {'text': text,
                                 'contact_id': contact_id,
                                 'date': '2014-07-10'})['note']
    note_id = note['id']
    # Partial create to autofill missing fields
    deal = client.post('deals', {'name': 'Lunch costs',
                                 'amount': 12.50,
                                 'status': 'won',
                                 'contact_id': contact_id},
                                partial=True)['deal']
    deal_id = deal['id']


Update existing resources:

.. code-block:: python

    contact['background'] = 'CEO of OnePage'
    contact = client.put('contacts', contact_id, contact)['contact']

    # To do a partial update
    update = {'background': 'CEO of OnePageCRM'}
    contact = client.patch('contacts', contact_id, update)['contact']

    # To attach a note to a deal
    client.patch('notes', note_id, {'linked_deal_id': deal_id'})

Delete resources you no longer need:

.. code-block:: python

    client.delete('deals', deal_id)
    client.delete('contacts', contact_id)
    # To undo the deletion of a contact
    client.delete('contacts', contact_id, undo=True)