Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ParsePy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ParsePy
Commits
0237d82f
Commit
0237d82f
authored
May 13, 2016
by
Miles Richardson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repo note, and instructions for self-hosted parse-server
parent
55b03e3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
README.mkd
+36
-0
No files found.
README.mkd
View file @
0237d82f
Note: As of May 13, 2016, this repository (
`milesrichardson/ParsePy`
is the
most up-to-date and active python client for the Parse API. It supports self-hosted
`parse-server`
via the REST API. Note that some features will not work with parse-server,
if they are not supported by the REST API (e.g. push).
See the section below, "using with self-hosted parse-server," for instructions.
parse_rest
==========
...
...
@@ -32,6 +39,35 @@ up-to-date. The code is still under lots of changes and the stability
of the library API - though improving - is not guaranteed. Please
file any issues that you may find if documentation/application.
Using with self-hosted `parse-server`
-------------
To use the library with self-hosted parse-server, set the environment variable
`PARSE_API_ROOT`
before importing the module.
Example:
~~~
~~ {python}
import os
os.environ["PARSE_API_ROOT"] = "http://your_server.com:1337/parse"
# Everything else same as usual
from parse_rest.datatypes import Function, Object, GeoPoint
from parse_rest.connection import register
from parse_rest.query import QueryResourceDoesNotExist
from parse_rest.connection import ParseBatcher
from parse_rest.core import ResourceRequestBadRequest, ParseError
APPLICATION_ID = '...'
REST_API_KEY = '...'
MASTER_KEY = '...'
register(APPLICATION_ID, REST_API_KEY, master_key=MASTER_KEY)
~~~
~~
Testing
-------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment