semvec/pypi-packages huggingface dataset:
python-pipedrive 0.4.0
Light wrapper around Pipedrive API
License: MIT

python-pipedrive
================

Python library for interacting with the pipedrive.com API


This is being developed for my specific use so there's no guarantee I'll cover all of the aspects of the Pipedrive API. Feel free to add features though, I welcome pull requests.

All features should be supported though as this is just a lightweight wrapper around the API.


Usage:

Create a Pipedrive object, passing either the api key or your username and password as the parameters

```python
from pipedrive import Pipedrive
pipedrive = Pipedrive(USERNAME, PASSSWORD)
```

or

```python
from pipedrive import Pipedrive
pipedrive = Pipedrive(API_KEY)
```

The rest of the functions relate to the URL as specified in the [API Docs](https://developers.pipedrive.com/v1).

Do yourself a favor and try a few simple requests and look the raw responses to know what data Pipedrive's API gives you. This will aid in knowing how to deal with your responses in python code. For example, to find an organzation:

    
    curl 'https://api.pipedrive.com/v1/organizations/find?api_token=abcd1234abcd1234abcd1234abcd1234abcd1234&term=microsoft'

which spits out something like:

    {"success":true,"data":[{"id":215,"name":"Microsoft Main Organization","visible_to":"3"},{"id":360,"name":"Microsoft Subdivision Company","visible_to":"3"}],"additional_data":{"pagination":{"start":0,"limit":100,"more_items_in_collection":false}}}


The two things to note are the HTTP Method, and the path:

Examples:

1.  List the organizations
    ```python
        pipedrive.organizations(method='GET')
    ```

2.  Add a New Deal
    ```python
        pipedrive.deals({
            'title': 'Big Sucker',
            'value': 1000000,
            'org_id': 2045,
            'status': 'open'
        }, method='POST')
    ```

3.  Delete an Activity
    ```python
        pipedrive.activities({'id': 6789}, method='DELETE')
    ```

4.  Find a person, and use the search results. The variable ```term``` is the search term that has been passed in.
    ```python
        import json
        ...
        response = pipedrive.persons_find({'term':term}, method='GET')
        results = response['data']
        suggestions = []
        if results != None:
                for result in results:
                    suggestions.append({'value': result['name'], 'data': result})
        json_response = {'query': term, 'suggestions': suggestions}
        data = json.dumps(json_response)

    ```
    And return ```data``` to some kind of javascript search result autocomplete thing (this example is formatted for devbridge's simple and easy-to-use [jquery.autocomplete.js](https://github.com/devbridge/jQuery-Autocomplete))
create-flask-app 0.2.1
Create flask web apps with directory layout
License: MIT

|wip| |pypi| |pypi-version| |Open Source Love|

Create flask app
-------------------

Create flask web apps with directory layout


Install
-------

You can install `create-flask-app` with pip
::

    $ pip install create-flask-app


Usage
-----

::

    usage: create-flask-app [-h] <project-directory>

    create flask application

    positional arguments:
      <project-directory>  directory

    optional arguments:
      -h, --help           show this help message and exit

License
-------

- MIT © 2017 `Luavis <https://github.com/Luavis>`__

.. |wip| image:: https://img.shields.io/badge/status-WIP-red.svg
.. |pypi| image:: https://img.shields.io/pypi/v/create-flask-app.svg
   :target: https://pypi.python.org/pypi/create-flask-app
.. |pypi-version| image:: https://img.shields.io/pypi/pyversions/create-flask-app.svg
   :target: https://pypi.python.org/pypi/create-flask-app
.. |Open Source Love| image:: https://badges.frapsoft.com/os/mit/mit.svg?v=102
   :target: https://github.com/luavis/create-flask-app/