<commit_before>Python SmartDataCenter
======================

Connect with Joyent_'s SmartDataCenter CloudAPI_ via Python, using secure 
http-signature_ signed requests.

This is a third-party effort.

This module currently supports:

* Secure connections (via py-http-signature_ and ssh-agent, when available)
* Key management
* Browsing and access of datacenters, datasets (OS distributions/VM bundles), 
  and packages (machine sizes and resources)
* Machine listing, search, creation, management 
  (start/stop/reboot/resize/delete), snapshotting, metadata, and tags
* Installing boot scripts on machines

It attempts to provide Pythonic objects (for Data Centers, Machines and 
Snapshots) and convenience methods only when appropriate, and otherwise deals 
with string identifiers or dicts as lightweight objects.

Requirements
------------

* requests_
* py-http-signature_
* PyCrypto_ (required by py-http-signature)
* ssh_ (used by py-http-signature for its ``ssh-agent`` integration)

We assume that ``json`` is present because requests now requires py2.6 and 
up.

Python SmartDataCenter Links
----------------------------

* `Python Smart Data Center Tutorial`_ 
* `smartdc in PyPI`_
* `http_signature in PyPI`_
* `py-smartdc at GitHub`_
* `py-http-signature at GitHub`_
* `py-smartdc Documentation`_ & API reference
* `Joyent CloudAPI Documentation`_

.. _Joyent: http://joyentcloud.com/
.. _CloudAPI: https://api.joyentcloud.com/docs
.. _Joyent CloudAPI Documentation: CloudAPI_
.. _http-signature: 
    https://github.com/joyent/node-http-signature/blob/master/http_signing.md
.. _requests: https://github.com/kennethreitz/requests
.. _PyCrypto: http://pypi.python.org/pypi/pycrypto
.. _ssh: https://github.com/bitprophet/ssh
.. _Python Smart Data Center Tutorial: 
    http://packages.python.org/smartdc/tutorial.html
.. _smartdc in PyPI: http://pypi.python.org/pypi/smartdc
.. _http_signature in PyPI: http://pypi.python.org/pypi/http_signature
.. _py-http-signature: `http_signature in PyPI`_
.. _py-http-signature at GitHub: https://github.com/atl/py-http-signature
.. _py-smartdc at GitHub: https://github.com/atl/py-smartdc
.. _py-smartdc Documentation: http://packages.python.org/smartdc/

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

::

    pip install smartdc

Quickstart
----------

::<commit_msg>SmartDataCenter orthography<commit_after>Python SmartDataCenter
======================

Connect with Joyent_'s SmartDataCenter CloudAPI_ via Python, using secure 
http-signature_ signed requests.

This is a third-party effort.

This module currently supports:

* Secure connections (via py-http-signature_ and ssh-agent, when available)
* Key management
* Browsing and access of datacenters, datasets (OS distributions/VM bundles), 
  and packages (machine sizes and resources)
* Machine listing, search, creation, management 
  (start/stop/reboot/resize/delete), snapshotting, metadata, and tags
* Installing boot scripts on machines

It attempts to provide Pythonic objects (for Data Centers, Machines and 
Snapshots) and convenience methods only when appropriate, and otherwise deals 
with string identifiers or dicts as lightweight objects.

Requirements
------------

* requests_
* py-http-signature_
* PyCrypto_ (required by py-http-signature)
* ssh_ (used by py-http-signature for its ``ssh-agent`` integration)

We assume that ``json`` is present because requests now requires py2.6 and 
up.

Python SmartDataCenter Links
----------------------------

* `Python SmartDataCenter Tutorial`_ 
* `smartdc in PyPI`_
* `http_signature in PyPI`_
* `py-smartdc at GitHub`_
* `py-http-signature at GitHub`_
* `py-smartdc Documentation`_ & API reference
* `Joyent CloudAPI Documentation`_

.. _Joyent: http://joyentcloud.com/
.. _CloudAPI: https://api.joyentcloud.com/docs
.. _Joyent CloudAPI Documentation: CloudAPI_
.. _http-signature: 
    https://github.com/joyent/node-http-signature/blob/master/http_signing.md
.. _requests: https://github.com/kennethreitz/requests
.. _PyCrypto: http://pypi.python.org/pypi/pycrypto
.. _ssh: https://github.com/bitprophet/ssh
.. _Python SmartDataCenter Tutorial: 
    http://packages.python.org/smartdc/tutorial.html
.. _smartdc in PyPI: http://pypi.python.org/pypi/smartdc
.. _http_signature in PyPI: http://pypi.python.org/pypi/http_signature
.. _py-http-signature: `http_signature in PyPI`_
.. _py-http-signature at GitHub: https://github.com/atl/py-http-signature
.. _py-smartdc at GitHub: https://github.com/atl/py-smartdc
.. _py-smartdc Documentation: http://packages.python.org/smartdc/

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

::

    pip install smartdc

Quickstart
----------

::
{'fraction_non_alphanumeric': 0.13902122130792552, 'fraction_numerical': 0.0008661758336942399, 'mean_word_length': 3.903397027600849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '699291', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1376, 'n_words': 391}