semvec/pypi-packages huggingface dataset:
Flask-DStore 0.1.2
DStore Web API and JS Client using FLask
License: MIT

Welcome To DStore
#################

.. image:: https://img.shields.io/coveralls/MarkLark/flask-dstore.svg
    :target: https://coveralls.io/github/MarkLark/flask-dstore?branch=master

.. image:: https://img.shields.io/travis/MarkLark/flask-dstore/master.svg
    :target: https://travis-ci.org/MarkLark/flask-dstore

.. image:: https://img.shields.io/pypi/v/flask-dstore.svg
    :target: https://pypi.python.org/pypi/flask-dstore

.. image:: https://img.shields.io/pypi/pyversions/flask-dstore.svg
    :target: https://pypi.python.org/pypi/flask-dstore

Flask-DStore is a Web API and Javascript Client.
The API routes, logic and client code is automatically generated for you.


Installing
==========

PyMan is available from the PyPi repository.

This means that all you have to do to install PyMan is run the following in a console:

.. code-block:: console

    $ pip install dstore-flask

Minimal Example
===============

.. code-block:: python

    from flask import Flask
    from dstore import MemoryStore, Model, var, mod
    from flask_dstore import API

    class Car( Model ):
        _namespace = "cars.make"
        _vars = [
            var.RowID,
            var.String( "manufacturer", 32, mods = [ mod.NotNull() ] ),
            var.String( "make", 32, mods = [ mod.NotNull() ] ),
            var.Number( "year", mods = [ mod.NotNull(), mod.Min( 1950 ), mod.Max( 2017 ) ] ),
        ]

    # Create the app instances
    app = Flask( __name__ )
    store = MemoryStore( [ Car ] )
    api = API( store, app )

    # While inside the Flask app context, create all storage and add a car
    with app.app_context():
        store.create_all()
        Car( manufacturer = "Holden", make = "Commodore", year = 2005 ).add()

    # Run the Flask dev. server
    app.run()

    # Now destroy all data
    with app.app_context():
        store.destroy_all()

    store.destroy_app()


Documentation: `ReadTheDocs <http://flask-dstore.readthedocs.io/>`_

Source Code: `GitHub <https://github.com/MarkLark/flask-dstore>`_
winregal 1.0.1
A Modern Python wrapper for the Windows registry
License: MIT
Keywords: winregal

WinRegal
========
| "Use the Windows Registry like a king"
| A Modern Python wrapper for the Windows Registry (wrapping winreg)
| Python Windows Registry Module
| Access Registry like a dict


Install
-------
pip install winregal

Usage
-----
Use winregal.RegKey along with the 'with' statement to access any key of your choice.
winregal handles key opening and closing for you and makes iteration really simple.


Get a Key hierarchy with all values as a dictionary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Example : Print Putty sessions

.. code:: python

    In[2]: from winregal import RegKey
    In[3]: with RegKey("HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions") as key:
    ...     print(key.to_dict())
    ...
    {'Server1: {'UserName': u'user', 'HostName': u'192.168.48.131', ... },
     'Server2': {'UserName': u'user', 'HostName': u'192.168.48.132', ... }}


Iterate over Key hierarchy handling only values
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Example : Print most recently run commands(RunMru)

.. code:: python

    In[1]: with RegKey("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU") as key:
    ...     for item in key:
    ...         if isinstance(item, RegValue):
    ...             print(item.name, item.data)
    ...
    ('a', u'cmd\\1')
    ('b', u'winword\\1')
    ('c', u'notepad\\1')
    ('d', u'control\\1')
    ('e', u'regedit\\1')
    ('f', u'calc\\1')
    ('j', u'notepad++\\1')


Directly access a value / key
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In[10]: with RegKey("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU") as key:
    ...     print(key['a'].data)
    ...
    cmd\1


Next in module Development
--------------------------
- Support ConnectRegistry (via RegKey.__init__)
- Wrap Edit/Save/Delete operations: e.g. CreateKey, DeleteKey, DeleteValue, SetValue, SaveKey

Contact me (py@bitweis.com) if you need these anytime soon.