semvec/pypi-packages huggingface dataset:
campbel 0.0.42
Convenient tool"),
License: MIT

pypi: https://pypi.python.org/pypi/campbel/0.0.7

便利モジュールです。  
現段階ではRDS、S3への接続のモジュールになります。

セットアップ  
pip install campbel

チュートリアル  
dbに接続しよう  

from campbel.AWS import Rds as rds  
rds = rds.Rds(  
    db_host = 'DBホスト',  
    db_user = 'DBユーザー',  
    db_password = 'DBパスワード',  
    db_name = 'DB名',  
    charset = 'utf-8',
    debug=False
    )  

これで接続完了！

sql文を実行してみよう
sql = ''
rds.sqlExecute(sql)  
rds.dbClosed()
これで任意のsql文を実行できます！
以下を使うと高速にかつ正確にsql文が実行できます。(内部ではsqlExecute()が実行されています。)

インサートしよう  
辞書形式を配列にしましょう。
data_list_array = [  
    {'name':'ryu', age:27, 'massage':'こんにちは'},  
    {'name':'koumei', age:26, 'massage':'game'},  
    {'name':'hyuga', age:21, 'massage':'meshi'},  
    {'name':'kenjo', age:20, 'massage':'study'},  
    ]  
r = rds.insertListExecute('user', data_list_array)  
これは  
INSERT INTO user (name,age,message) VALUES ("ryu",27,"こんにちは")  
INSERT INTO user (name,age,message) VALUES ("koumei",26,"game")  
INSERT INTO user (name,age,message) VALUES ("hyuga",21,"meshi")  
INSERT INTO user (name,age,message) VALUES ("kenjo",20,"study")  
と等価です。  

取得してみよう
r ＝ rds.insertListExecute('user', 'name', where='')
data = r.fetchall()
これは
SELECT name FROM user
と等価です。

アップデートしてみよう
r = rds.updateListExecute('user', {'age':8, 'where':'name="ryu"'}, where='where')  
これは
UPDATE user SET age=8 WHERE name="ryu"
と等価です。


なお、
r._executedで実行した一番最後のsqlが確認できます。(複数まとめて実行した場合は一番最後のsqlの表示になります。)
もしその都度確認したければ、インスタンスを作る段階でdebug=Trueとしてください。



次はs3に接続してみよう！  

from campbel.AWS import S3 as s3  

s3 = spython setup.py register3.S3(  
        access_key = 'アクセスキー',  
        secret_access_key = 'シークレットアクセスキー',  
        bucket_name = 'バケット名',  
    )  

これで接続完了です。  

S3の/test/とディレクトリを作ろう。  
s3.createDir('test/')  

ローカルのa.txtをデータを入れよう！  
s3.uploadFileToS3(a.txt, 'test/a.txt')  



















<!--  -->
awsenviron 0.0.7
Load environ vars from AWS Parameter Store
License: MIT
Keywords: env python aws parameter-store

python-awsenviron
================

[![Supported Versions](https://img.shields.io/pypi/pyversions/awsenviron.svg)](https://pypi.python.org/pypi/awsenviron)
[![Build Status](https://travis-ci.org/douglasfarinelli/python-awsenviron.svg?branch=master)](https://travis-ci.org/douglasfarinelli/python-awsenviron)
[![Coverage Status](https://coveralls.io/repos/github/douglasfarinelli/python-awsenviron/badge.svg?branch=master)](https://coveralls.io/github/douglasfarinelli/python-awsenviron?branch=master)
[![PyPI version](https://badge.fury.io/py/awsenviron.svg)](https://pypi.python.org/pypi/awsenviron)

The `awsenviron` reads the key, value pair from [AWS Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-paramstore.html) and adds them to environment variable. This was inspired by [python-dotenv](https://github.com/theskumar/python-dotenv) and [12-factor](https://12factor.net/config) principles.

Installation
============

```bash
pip install awsenviron
```

or

```bash
pipenv install awsenviron
```
    
Usage
=====

```python
awsenviron.load_from_parameter_store(path='<your-path>')
```

Now, you can access the variables either from system environment variable:

```python
import os

DATABASE_URI = os.environ.get('DATABASE_URI')
```

Authentication
==============

awsenviron use `boto3` to authentication, [click here](http://boto3.readthedocs.io/en/latest/guide/configuration.html) to see the methods.
django-blockstack-auth 0.1.3
Blockstack ID authentication backend for Django
License: MIT
Keywords: django-blockstack-auth

=============================
Django Blockstack Auth
=============================

.. image:: https://badge.fury.io/py/django-blockstack-auth.svg
    :target: https://badge.fury.io/py/django-blockstack-auth

.. image:: https://travis-ci.org/dotpodcast/django-blockstack-auth.svg?branch=master
    :target: https://travis-ci.org/dotpodcast/django-blockstack-auth

.. image:: https://codecov.io/gh/dotpodcast/django-blockstack-auth/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/dotpodcast/django-blockstack-auth

Blockstack ID authentication backend for Django

Documentation
-------------

The full documentation is at https://django-blockstack-auth.readthedocs.io.

Quickstart
----------

Install Django Blockstack Auth::

    pip install django-blockstack-auth

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'django_blockstack_auth.apps.DjangoBlockstackAuthConfig',
        ...
    )

Add Django Blockstack Auth's URL patterns:

.. code-block:: python

    from django_blockstack_auth import urls as django_blockstack_auth_urls


    urlpatterns = [
        ...
        url(r'^blockstack/', include(django_blockstack_auth_urls, namespace='blockstack')),
        ...
    ]

Features
--------

* Allows users to authenticate with their Blockstack ID
* Encrypts Blockstack tokens with the Django secret key

Running tests
-------------

Does the code actually work?

::

    $ pip install detox
    $ source <YOURVIRTUALENV>/bin/activate
    (myenv) $ detox

Credits
-------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2017-12-05)
++++++++++++++++++

* First release on PyPI.