Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    python-donecal 0.3.2

    Download button

    No screenshots available
    Downloads: 196  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Peter Bengtsson | More programs
    BSD License / FREE
    December 1st, 2010, 15:39 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    python-donecal description

    Python interface for the donecal.com restful HTTP API

    The donecal package makes it easy to use the restful HTTP API on http://donecal.com/

    All you need is your guid which you can pick up on http://donecal.com/help/API once you have created an account.

    Installation

    Install the package with pip or easy_install. Like this:

    pip install python-donecal

    Usage

    The API is working swimingly but it's not very rich at the moment. Here's some sample code to get you started:

    >>> import datetime
    >>> from donecal import DoneCal
    >>> dc = DoneCal('XXXXXX-XXXX-XXXX-XXXX-XXXXXX')
    >>> data = dc.get_events(datetime.date(2010, 10, 1),
    ... datetime.datetime.now())
    >>> print data['tags']
    ['@ProjectX', '@ProjectY']
    >>> from pprint import pprint
    >>> pprint(data['events'][0])
    {'all_day': True,
     'end': datetime.datetime(2010, 10, 20, 0, 0),
     'id': '4cb086b06da6812276000001',
     'start': datetime.datetime(2010, 10, 20, 0, 0),
     'title': "Testing stuff on @ProjectX"}
    >>> # Now to post something
    >>> event, created = dc.add_event("Testing more stuff",
    ... date=datetime.datetime(2010, 11, 1))
    >>> print "Created?", created and "yes" or "no"
    yes



    Product's homepage

    Requirements:

    · Python

    Limitations:

    · At the moment there are rate limitations but there might be some time in the future to ensure fair access for everyone.

      


    TAGS:

    restful HTTP | HTTP API | Python interface | restful | HTTP | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM