semvec/pypi-packages huggingface dataset:
photostation 0.1.5
A Python API to communicate with Photo Station running on Synology NAS.
License: MIT
Keywords: synology dsm photo station web api

Synology PhotoStation Python API
================================

A Python API to communicate with `Photo Station <https://www.synology.com/en-global/dsm/6.1/packages/PhotoStation>`_ running on Synology NAS. Photos and videos are uploaded directly to PhotoStation through its Web API with various metadata including ratings, title, description, and GPS coordinates.

This module uploads original files and lets Synology to process the required thumbnail versions. This works fine with Synology DS916+ but might be too slow with models having slower processors.

Supported features:

* Login to your shared or personal Photo Station
* List album contents
* Create missing albums automatically
* Add new photos
* Update metadata of existing photos
* Update photo binaries based if either timestamp or filesize differs
* Delete photos

Tested with Synology DS916+ running DSM 6.1 and Photo Station 6.7.1. Should work with older versions too but you mileage may vary.

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

::

    pip install photostation

Usage
-----

::

    from photostation import PhotoStationService, SynologyException
    import requests

    try:
        # login to Photo Station and set up root album
        service = PhotoStationService('https://USERNAME:PASSWORD@xyz.synology.me/photo/webapi/', 'root-album')

        # get reference to album and create it if missing
        album = service.album('2017/05/13', create=True)

        # list album content (subalbums, photos, videos)
        print(album.items)

        # add photo reference inside album
        photo = album.create_item(
            filename = 'testimage.jpg', # original filename
            filetype = 'photo',         # photo or video 
            created = 1494603121336,    # timestamp of photo capture
            modified = 1494603121336    # optional timestamp to compare if existing binary has changed
            filesize = 1000,            # optional filesize to compare if existing binary has changed
            title = '',                 # optional title
            description = '',           # optional description
            rating = 0,                 # optional starts from 0 to 5
            latitude = 60,              # optional coordinates for videos
            longitude = 20)             # optional coordinates for videos

        # update metadata of existing photos
        merged = photo.merge()

        if merged:
            print('metadata was updated or already up to date, deleting photo')

            photo.delete()
        else:
            # upload new file
            stream = requests.get('https://dummyimage.com/600x400/000/fff', stream=True)
            photo.save_content(stream)

    except SynologyException as se:
        print se.value
our_groceries_client 0.1.2
An interface to manipulating items on an OurGroceries.com list
License: MIT
Keywords: grocery list

Our Groceries Client
====================
This package provides an interface to the grocery list application 'Our Groceries'.
Features include:
 * Adding items to a list
 * Querying if items are on a list
Future development will include:
 * Removing items / crossing off from a list
 * Deleting crossed off items from a list
 * Listing items on a list
 
--------------------
This package was based on the NodeJS module available
at https://github.com/sethwebster/our-groceries-client. Thanks a ton to sethwebster
for have this all figured out and providing the source.
django-cbmail 0.1.1
Django module to easily send templated emails in a DRY way
License: MIT

Django CBMail
================

|Build Status| |Codacy Badge| |Coverage Status| |BCH compliance| |Pypi|

Django module to easily send templated emails in a DRY way using
classes, just like Class Based Views.

Table of contents:
 * `How to install`_;
 * `Example usage`_;
 * `Settings reference`_;
 * `License`_.

How to install
--------------

To install the app run :

.. code:: shell

    pip install django-cbmail

or add it to the list of requirements of your project.

Example usage
-------------

Create a mails.py and use the BaseMail class to define your email like:

.. code:: python

    from cbmail.base import BaseMail

    class ExampleEmail(BaseMail):
        """ """
        template_name = "myapp/mails/myemail.html"
        subject = "Example subject of email"

And send it using:

.. code:: python

    ExampleEmail().send(['example@example.com'])

Where ``['example@example.com']`` is a list of emails of destination or
a object with ``get_mailing_list`` method defined

Settings reference
------------------

To give support to this app we need to declare de following django
settings:

.. code:: python

    DEFAULT_FROM_EMAIL = "example@example.com"

    CBMAIL = {
        'DEFAULT_REPLY_TO': "examplereplyto@example.com",
        'DEFAULT_SUJECT': "Example subject",
        'BASE_URL': "https://domain.com",
        'EXTRA_DATA': {},
        'WHITELIST': []
    }

-  **DEFAULT\_FROM\_EMAIL**: Default setting of Django that defines the
   from email
-  **DEFAULT\_REPLY\_TO**: Default reply to be used on emails
-  **DEFAULT\_SUJECT**: Default subject to be used on emails
-  **WHITELIST**: List of valid emails to send to
-  **BASE\_URL**: The base url of your website
-  **EXTRA\_DATA**: Any extra data intended to be used on all emails
   (This is injected on context of template)

License
-------

MIT license, see the LICENSE file. You can use obfuscator in open source
projects and commercial products.

.. _How to install: #how-to-install
.. _Example usage: #example-usage
.. _Settings reference: #settings-reference
.. _License: #license

.. |Build Status| image:: https://travis-ci.org/dipcode-software/django-cbmail.svg?branch=master
   :target: https://travis-ci.org/dipcode-software/django-cbmail
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/d01ebbe43c684d478cacc530e44633ad
   :target: https://www.codacy.com/app/srtabs/django-cbmail?utm_source=github.com&utm_medium=referral&utm_content=dipcode-software/django-cbmail&utm_campaign=Badge_Grade
.. |Coverage Status| image:: https://coveralls.io/repos/github/dipcode-software/django-cbmail/badge.svg?branch=master
   :target: https://coveralls.io/github/dipcode-software/django-cbmail?branch=master
.. |BCH compliance| image:: https://bettercodehub.com/edge/badge/dipcode-software/django-cbmail?branch=master
   :target: https://bettercodehub.com/
.. |Pypi| image:: https://img.shields.io/pypi/v/django-cbmail.svg?style=flat
   :target: https://pypi.python.org/pypi/django-cbmail
ManHourCalendar 0.9.1b3
Calendar to manage your man-hour.
License: MIT
Requires Python: >=3
Keywords: man-hour,manhour,man hour,calendar,schedule

Man Hour Calendar
=================

A simple monthly calendar for checking and scheduling your working
man-hours. （Mainly for Japan)

`中文版文档 <https://github.com/wavky/ManHourCalendar/blob/master/README.zh.md>`__

This is a CLI tool, just as my first python project, created to deal
with my monthly man-hour calculation.

Usage
-----

The simply way to use it like this flow:

.. code:: sh

    # Initialize your Job file first.
    # It will also update the Japanese holidays schedule at the first time.
    $ mhcalendar -J ...

    # Check out the man-hour schedule of current month.
    $ mhcalendar

    # Check in your man-hour of first day.
    # Ensure that you will check in everyday.
    $ mhcalendar -c 8

    # Check out your schedule again to confirm your next day's work hours.
    $ mhcalendar


    # Schedule your day off or on duty days anytime before it comes.
    # For example, make date of 9, 10 and 11 as dayoff, and go to work at 13th.
    $ mhcalendar --dayoff -- 9 10 11 -13

    # Remember to Update your schedule by calling this
    $ mhcalendar

For more information you can check it out by command:

.. code:: sh

    $ mhcalendar -h

Also you can run it by your python script, refer to this file:

`Example.py <https://github.com/wavky/ManHourCalendar/blob/master/mhcalendar/example.py>`__

Install
-------

This program is written in python3, you need to install the python3 and
pip3 before this installation.

.. code:: sh

    pip3 install ManHourCalendar

About data
----------

For simple, we haven't use database this time, all data is only cache in
this folder as files:

.. code:: sh

    ~/.mhcalendar/
    # or your user dir in Windows such as
    C:\Users\username\.mhcalendar\

And holidays schedule is fetched from the site below:

http://calendar-service.net/

ご提供ありがとうございます！