Skip to content

Commit 6670278

Browse files
authored
Merge pull request #26 from PredixDev/develop
Release Candidate 1.0.0rc1
2 parents 29d9c6f + 9cf8128 commit 6670278

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+5442
-453
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ __pycache__/
88

99
# Distribution / packaging
1010
build/
11+
_build/
1112
dist/
1213
eggs/
1314
.eggs/

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2017, General Electric Company
3+
Copyright (c) 2018, General Electric Company
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

-67
This file was deleted.

README.rst

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
2+
PredixPy
3+
========
4+
5+
The Predix Python SDK has been crafted to help Python developers have quick
6+
success writing applications using Predix Services.
7+
8+
Install it from PyPI::
9+
10+
pip install predix
11+
12+
If that isn't working for you, we highly recommend `The Hitchiker's Guide to
13+
Properly Installing Python`_ to learn about installing ``python``,
14+
``pip``, and ``virtualenv`` for your environment. For industrial environments, you
15+
may also need to learn how to set your proxies.
16+
17+
.. _The Hitchiker's Guide to Properly Installing Python: http://docs.python-guide.org/en/latest/starting/installation/
18+
19+
See the `Predix Volcano App`_ for a full demonstration of the SDK
20+
used in a Python Flask App.
21+
22+
.. _Predix Volcano App: https://github.com/PredixDev/predix-volcano-app
23+
24+
Getting Started
25+
---------------
26+
27+
Please see the `Getting Started Guide`_ for a walkthrough and introduction to
28+
basic usage of the Python SDK.
29+
30+
.. _Getting Started Guide: https://predixpy.run.aws-usw02-pr.ice.predix.io/getting-started/index.html
31+
32+
- [x] `User Account and Authentication`_ (UAA)
33+
- [x] `Predix Asset`_
34+
- [x] `Predix Time Series`_
35+
- [x] `Predix Access Control`_ (ACS)
36+
- [x] `Predix Blob Store`_
37+
- [x] `Predix Cache`_ (Redis)
38+
- [x] `Predix Database as a Service`_ (PostgreSQL)
39+
- [x] `Predix Event Hub`_
40+
- [x] `Logging`_
41+
- more...
42+
43+
.. _User Account and Authentication: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#user-accounts-and-authentication
44+
.. _Predix Asset: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#asset
45+
.. _Predix Time Series: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#time-series
46+
.. _Predix Access Control: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#access-control
47+
.. _Predix Blob Store: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#blob-store
48+
.. _Predix Cache: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#predix-cache
49+
.. _Predix Database as a Service: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#predix-dbaas
50+
.. _Predix Event Hub: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#event-hub
51+
.. _Logging: https://predixpy.run.aws-usw02-pr.ice.predix.io/services/index.html#logging
52+
53+
Getting Help
54+
------------
55+
56+
If something doesn't work as expected and you want help:
57+
58+
- Create a `GitHub Issue`_ in this project
59+
- Ask on the `Predix Developer Forum`_
60+
- Send email to [email protected] and we'll respond as soon as we can
61+
62+
.. _GitHub Issue: https://github.com/PredixDev/predixpy/issues
63+
.. _Predix Developer Forum: https://forum.predix.io/index.html
64+
65+
Contributors
66+
------------
67+
68+
See the `Developing PredixPy Guide`_ if you want to contribute or
69+
modify the SDK itself.
70+
71+
If you send a PR it will be reviewed as soon as possible but contribution
72+
guidelines and agreements for external parties have not been finalized.
73+
74+
.. _Developing PredixPy Guide: https://predixpy.run.aws-usw02-pr.ice.predix.io/devguide/index.html
75+
76+
.. image:: https://ga-beacon.appspot.com/UA-82773213-1/predixpy/readme?pixel
77+
:target: https://github.com/PredixDev/predixpy
78+
145 KB
Binary file not shown.

docs/_build/html/Staticfile

Whitespace-only changes.

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
# General information about the project.
5959
project = u'PredixPy'
60-
copyright = u'2017, GE Digital'
60+
copyright = u'2018, General Electric Company'
6161
author = u'Jayson DeLancey'
6262

6363
# The version info for the project you're documenting, acts as replacement for

docs/cookbook/asset.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The Predix Asset Service requires a ``uri`` as part of the body whenever you
1616
post a collection. The ``predix.data.asset.AssetCollection`` class will help
1717
generate this for you but sometimes you want to do that for yourself.
1818

19-
..
19+
::
2020

2121
import predix.app
2222
app = predix.app.Manifest()

docs/cookbook/cache.inc

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
.. _cache-cookbook:
3+
4+
Predix Cache Recipes
5+
--------------------
6+
7+
Recipes for working with Predix Python SDK and the Predix Cache service.
8+
9+
It is expected you used the SDK to create the service so that it is configured
10+
by Manifest.
11+
12+
How-To Use the Redis CLI
13+
........................
14+
15+
Predix Cache can only be used from within the Predix Cloud Foundry environment
16+
so you won't be able to use Redis CLI running on your local machine. As an
17+
alternative, you can install an app into your space called GoTTY and then
18+
install the Redis CLI.
19+
20+
First, see :ref:`gotty-setup` for instructions on setting up GoTTY. Once
21+
deployed to Predix Cloud, log into that environment and run the following
22+
commands.
23+
24+
::
25+
26+
./redis-cli
27+
28+
This is an alias to a script that will lookup the host, port, and password from
29+
your VCAP environment variables to launch ``redis-cli``.
30+
31+
See the official redis-cli docs for more details on how to use it once you
32+
are connected.
33+
34+
How-To Build a Web App with Cache
35+
.................................
36+
37+
See the following demo application for an example of a Flask app that uses
38+
Predix Cache with PredixPy.
39+
40+
https://github.com/j12y/predixpy-flask-cache
41+

0 commit comments

Comments
 (0)