semvec/pypi-packages huggingface dataset:
china-stock 0.1.5
china stock
License: MIT
Keywords: stock

china-stock
===========

.. image:: https://travis-ci.org/fuermosi777/china-stock.svg?branch=master

Author: `Hao Liu <http://liuhao.im>`_

~~~~~~~
Install
~~~~~~~

::

	$ pip install china-stock

~~~
Use
~~~

Import china-stock module:

::
    
    >>> import chinastock as cs

Get stock prices information on nearest trading day:

::

	>>> cs.get_stock_today(code='000001', exchange='SZ')

Get historical stock close prices:

::

    >>> cs.get_stock_history(code='000001', exchange='SZ')

Get stock's adjusted close prices, open, high, low, volume, and change:

::

    >>> cs.get_stock_history_adj(code='000001', exchange='SZ')

~~~~~~
Update
~~~~~~

07/14/2015:
    * Add :code:`get_stock_history` and :code:`get_stock_history_adj` methods
    * :code:`get_stock_today` method return strings, not :code:`datetime`
django-choices-enum 0.2
make enum34 package play well with django choices
License: MIT
Keywords: django choices enum

django-choices-enum
===================

django-choices-enum allows the usage of the 2.x backport of Python 3.4's enum
package (enum34) as choices in Django models.

    from django.db import models
    from django_choices_enum import ChoicesEnum

    class Monster(models.Model):
        class Types(str, ChoicesEnum):
            BEAST = ('beast', 'Beast')
            UNDEAD = ('undead', 'Undead')
            HUMAN = ('human', 'Human')

        name = models.CharField(max_length=40)
        type = models.CharField(max_length=40, choices=Types.choices())

You may now write code like this:

    monsters = Monster.objects.filter(type=Monster.Types.BEAST)
    for m in monsters:
        assert m.type == Monster.Types.BEAST

    m = Monster(name='Vampire', type=Monster.Types.UNDEAD)
    m.save()

Details
=======

Each enumeration is a class subclassed from the type of the field and the
ChoicesEnum type:

    class MyIntEnumeration(int, ChoicesEnum):
        A = (1, 'Label A')

Each constant is then assigned a tuple of (value, label) as expected by
the Django choices parameter.  If the constant and label are the same,
you may omit the tuple and simply set the constant equal to the value of
the choice.

Contributions
=============

I did not really write most of this code.  It was found and fixed from
a Gist:

https://gist.github.com/dstufft/5600529
pygame_toolbox 0.1.2
Tools to help with game development using pygame
For complete details please reference the github page
License: MIT
Keywords: pygame

Pygame Toolbox
==============

| (Version 0.1.2)
| Written for Python 3.X
| Untested in Python 2.X

Source repo on `github <https://github.com/jbm950/pygame_toolbox>`__

Introduction
------------

This is a collection of useful code for anyone wanting to work with game
making in Python. Current code deals with menu creation and boardgame
like tile usage. For details on using the library please refer to the
examples page on github.

Install Instructions
--------------------

Pygame Toolbox can now be downloaded via pip. Simply run pip install 
pygame_toolbox.

Dependencies
~~~~~~~~~~~~

This library is dependant on the following

-  `Pygame <http://www.pygame.org/download.shtml>`__

Contributors
------------

Ideas and contributions are always welcome. Any found bugs or
enhancement suggestions should be posted in the issues tab.

Aditional Information
---------------------

Licensing
~~~~~~~~~

| This project is distributed using the MIT license
| For more licensing information read LICENSE on github

Contact Info:
~~~~~~~~~~~~~

This project does not have a mailing list and so the issues tab should
be the first point of contact if wishing to discuss the project. If you
have questions that you do not feel are relavent to the issues tab or
just want to let me know what you think about the library, feel free to
email me.

Email: jbmilam343@gmail.com