semvec/pypi-packages huggingface dataset:
pw-database-url 0.2.0
Use Database URLs in your Peewee ORM application.
License: BSD

pw-database-url
~~~~~~~~~~~~~~~

This simple Python utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``DATABASE_URL`` environment variable to configure your Peewee ORM application.

All credit goes to Kenneth Reitz for this one, as it's a direct
port of his dj-database-url utility for Django apps.


Usage
-----

Configure your database from ``DATABASE_URL``::

    DATABASE = pw_database_url.config()

Parse an arbitrary Database URL::

    DATABASE = pw_database_url.parse('postgres://...')

Supported databases
-------------------

Support currently exists for PostgreSQL, MySQL and SQLite.

In addition, support for Postgres specific features can be enabled by using the
``postgresext://`` pattern. This will give you access to the HStoreField type.
See the `peewee docs <http://peewee.readthedocs.org/en/latest/peewee/playhouse.html#postgresql-hstore>`_ for usage information and examples.

SQLite connects to file based databases. The same URL format is used, omitting
the hostname, and using the "file" portion as the filename of the database.
This has the effect of four slashes being present for an absolute file path:
``sqlite:////full/path/to/your/database/file.sqlite``.
pydiigo 0.5
Python wrapper for www.diigo.com's API
License: BSD

Requirements
=======================
* `pit`_ **optional**. See diigotest.py. You might love it ;)

.. _`pit`: http://pypi.python.org/pypi?:action=display&name=pit

instllation
=======================
$ pip install pydiigo

  or 

Download pydiigo and extract it, then

$ sudo python setup.py install

Notes
=======================
You might get 503 Error, because of Diigo's API limit.

v.0.5
--------------------
api needs diigo **API KEY** generate api key via https://www.diigo.com/api_keys/new/

required python version 2.6, 2.7, 3.2, 3.3

v.0.2
--------------------
**Update Bookmark** is deprecated and raise DeprecationWarning.

Usage
=======================

Initialize API 
--------------------
::

  >>> from pydiigo import DiigoApi
  >>> api = DiigoApi(user='YOUR_DIIGO_USERNAME', password='YOUR_DIIGO_PASSWORD', apikey='YOUR API KEY')

Search Bookmarks
--------------------
::

  >>> bookmarks = api.bookmarks_find(users='DIIGO_USER_NAME')
  >>> for bookmark in bookmarks:
  ...   print(bookmark.title)
  ...   print(bookmark.url)
  ...   print(bookmark.tags)
  ...   print(bookmark.desc)
  ...   print('-' * 10)

* Bookmark Structure

  * title (string)

  * url (string)

  * user (string)

  * desc (string: description)

  * tags (string: Seperated by comma with multiple tags.)

  * shared (string: yes or no)

  * created_at (string: eg.2009/03/04 02:57:09 +0000)

  * updated_at (string: eg.2009/03/04 02:57:09 +0000)

  * comments (string array)

  * annotations (string array)

Add Bookmark
--------------------
::

  >>> result = api.bookmark_add(title='', description='',url='', shared='yes', tags='')
  >>> print(result['message'])
  added 1 bookmark

* required arguments

  * url

Delete Bookmark
--------------------
::

  >>> result = api.bookmark_delete(url='')
  >>> print(result['message'])
  updated 1 bookmark

* required arguments

  * url