changeset 517:243b5af89842

packaging and readme Ignore-this: 42e3e426a625ee79d4f25c94c7b21f35
author drewp@bigasterisk.com
date Tue, 23 Apr 2019 00:10:41 -0700
parents 108e02248dd8
children d5272e9045af
files lib/patchablegraph/MANIFEST.in lib/patchablegraph/README.md lib/patchablegraph/__init__.py lib/patchablegraph/setup.py
diffstat 3 files changed, 38 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/patchablegraph/MANIFEST.in	Tue Apr 23 00:10:41 2019 -0700
@@ -0,0 +1,2 @@
+exclude tasks.py
+exclude setup.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/patchablegraph/README.md	Tue Apr 23 00:10:41 2019 -0700
@@ -0,0 +1,29 @@
+RDF graph that accepts patches and serves them over HTTP (with a SSE protocol).
+
+Example:
+
+```
+from patchablegraph import PatchableGraph
+
+masterGraph = PatchableGraph()
+
+```
+
+Then, you call `masterGraph.patch`, etc to edit the
+graph. `rdfdb.grapheditapi.GraphEditApi` is mixed in, so you can
+use
+[higher-level functions](https://bigasterisk.com/darcs/?r=rdfdb;a=headblob;f=/rdfdb/grapheditapi.py) from
+there, such as patchObject.
+
+Web serving:
+
+``` from patchablegraph import CycloneGraphHandler,
+CycloneGraphEventsHandler
+
+reactor.listenTCP(9059, cyclone.web.Application([
+    ...
+    (r"/graph", CycloneGraphHandler, {'masterGraph': masterGraph}),
+    (r"/graph/events", CycloneGraphEventsHandler, {'masterGraph': masterGraph}),
+    ...
+```
+
--- a/lib/patchablegraph/setup.py	Mon Apr 22 23:34:42 2019 -0700
+++ b/lib/patchablegraph/setup.py	Tue Apr 23 00:10:41 2019 -0700
@@ -1,19 +1,18 @@
-from distutils.core import setup
+from setuptools import setup
  
 setup(
     name='patchablegraph',
     version='0.1.0',
     packages=['patchablegraph'],
     package_dir={'patchablegraph': ''},
-    requires=[
+    install_requires=[
         'cyclone',
         'twisted',
-        'rdflib-jsonld(>=0.3)',
-        'git+http://github.com/drewp/scales.git@448d59fb491b7631877528e7695a93553bfaaa93#egg=scales',
-        
-        'https://projects.bigasterisk.com/rdfdb/rdfdb-0.1.0.tar.gz',
-        'https://projects.bigasterisk.com/cycloneerr/cycloneerr-0.1.0.tar.gz',
-        'https://projects.bigasterisk.com/twisted_sse/twisted_sse-0.1.0.tar.gz',
+        'rdflib-jsonld >= 0.3',
+        'rdfdb @ https://projects.bigasterisk.com/rdfdb/rdfdb-0.8.0.tar.gz',
+        'scales @ git+http://github.com/drewp/scales.git@448d59fb491b7631877528e7695a93553bfaaa93',
+        'cycloneerr @ https://projects.bigasterisk.com/cycloneerr/cycloneerr-0.1.0.tar.gz',
+        'twisted_sse @ https://projects.bigasterisk.com/twisted_sse/twisted_sse-0.1.0.tar.gz',
     ],
     url='https://projects.bigasterisk.com/patchablegraph/patchablegraph-0.1.0.tar.gz',
     author='Drew Perttula',