diff --git a/README.md b/README.md index 8f8ee79..99a87bc 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,45 @@ # Python Status.io A Python wrapper around the Status.io API. -[![Downloads](https://img.shields.io/pypi/v/python-statusio.svg)](https://pypi.python.org/pypi/python-statusio/) -[![Travis CI](https://travis-ci.org/statusio/python-statusio.svg)](https://travis-ci.org/statusio/python-statusio) +[![Downloads](https://img.shields.io/pypi/v/statusio-python.svg)](https://pypi.python.org/pypi/statusio-python/) +[![Travis CI](https://travis-ci.org/statusio/statusio-python.svg)](https://travis-ci.org/statusio/statusio-python) ## Introduction This library provides a pure Python interface for the [Status.io API](http://docs.statusio.apiary.io/). It works with Python versions from 2.6+. [Status.io](https://status.io) provides hosted system status pages. ## Installing -You can install python-statusio using:: +You can install statusio-python using:: - $ pip install python-statusio + $ pip install statusio-python ## Documentation View the last release API documentation at: http://developers.status.io/ ## Using The library provides a Python wrapper around the Status.io API. ### API The API is exposed via the `statusio.Api` class. To create an instance of the `statusio.Api` with yout credentials: >>> import statusio >>> api = statusio.Api(api_id='api_id', api_key='api_key') To your status page summary: >>> summary = api.StatusSummary('status_page_id') >>> print(summary) There are many more API methods, to read the full API documentation:: $ pydoc statusio.Api \ No newline at end of file diff --git a/README.rst b/README.rst index 723a205..237b179 100644 --- a/README.rst +++ b/README.rst @@ -1,58 +1,58 @@ Python Status.io ================ A Python wrapper around the Status.io API. |Downloads| |Travis CI| Introduction ------------ This library provides a pure Python interface for the `Status.io API `__. It works with Python versions from 2.6+. `Status.io `__ provides hosted system status pages. Installing ---------- -You can install python-statusio using:: +You can install statusio-python using:: - $ pip install python-statusio + $ pip install statusio-python Documentation ------------- View the last release API documentation at: http://developers.status.io Using ----- The library provides a Python wrapper around the Status.io API. API ~~~ The API is exposed via the ``statusio.Api`` class. To create an instance of the ``statusio.Api`` with yout credentials: >>> import statusio >>> api = statusio.Api(api_id='api_id', api_key='api_key') To your status page summary: >>> summary = api.StatusSummary('status_page_id') >>> print(summary) There are many more API methods, to read the full API documentation:: $ pydoc statusio.Api -.. |Downloads| image:: https://img.shields.io/pypi/v/python-statusio.svg - :target: https://pypi.python.org/pypi/python-statusio/ -.. |Travis CI| image:: https://travis-ci.org/statusio/python-statusio.svg - :target: https://travis-ci.org/statusio/python-statusio +.. |Downloads| image:: https://img.shields.io/pypi/v/statusio-python.svg + :target: https://pypi.python.org/pypi/statusio-python/ +.. |Travis CI| image:: https://travis-ci.org/statusio/statusio-python.svg + :target: https://travis-ci.org/statusio/statusio-python diff --git a/python-statusio.spec b/python-statusio.spec index 484a4a7..e562fdb 100644 --- a/python-statusio.spec +++ b/python-statusio.spec @@ -1,48 +1,48 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -Name: python-statusio +Name: statusio-python Version: 0.1 Release: %{?dist} Summary: Python Interface for Status.io API Group: Development/Libraries License: Apache License 2.0 -URL: http://github.com/statusio/python-statusio +URL: http://github.com/statusio/statusio-python BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: python >= 2.6, BuildRequires: python-setuptools %description This library provides a pure python interface for the Status.io API. %prep %setup -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT chmod a-x README %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.rst # For noarch packages: sitelib %{python_sitelib}/* %changelog - Initial package. \ No newline at end of file diff --git a/setup.py b/setup.py index 1fd4766..e3b5787 100644 --- a/setup.py +++ b/setup.py @@ -1,38 +1,38 @@ #!/usr/bin/env python -'''The setup and build script for the python-statusio library.''' +'''The setup and build script for the statusio-python library.''' import os from setuptools import setup, find_packages def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup( - name='python-statusio', + name='statusio-python', version='0.2', author='Status.io', author_email='support@status.io', license='Apache License 2.0', - url='https://github.com/statusio/python-statusio', + url='https://github.com/statusio/statusio-python', keywords='status.io api statusio', description='A Python wrapper around the Status.io API', long_description=(read('README.rst')), packages=find_packages(exclude=['tests*']), install_requires=['future', 'requests'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Internet', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', ], )