Skip to main content

Skygear Logo

Python plugin runtime for Skygear

PyPI Build Status License

When the Skygear Server calls your plugin, py-skygear will take the plugin message and calls the appropriate function automatically.

Python Cloud Functions

py-skygear is useful for running Python Cloud Functions to work with skygear-server; skygear-node is the counter part of py-skygear but for Javascript.

You can read more about how to write Skygear Cloud Functions in Skygear Guides. You don't need py-skygear if you're using skygear.io and don't plan to deploy it on your own.

Install py-skygear

You may want to read Setup Skygear Development Server Locally before installing py-skygear (and understand why you might or might not need py-skygear)

Install skygear by using pip. py-skygear requires Python 3.

$ pip3 install skygear

Alternatively, you can install py-skygear from source by cloning py-skygear from this official repository.

Development

Skygear support two kind of protocol for different use case, make sure you add support to all of them or raise appropriate exception.

Supported protocols: http and zmq

If you want to use zmq, you need to install pyzmq, and respective cbinding. You can install via homebrew in OSX brew install zeromq

You may run a long running process that hook with your own skygear-server instance.

DATABASE_URL=postgresql://localhost/skygear?sslmode=disable \
py-skygear sample.py \
--skygear-address tcp://127.0.0.1:5555 \
--skygear-endpoint http://127.0.0.1:3000 \
--apikey=API_KEY

Support

For implementation related questions or technical support, please find us on the official forum or community chat.

If you believe you've found an issue with the Skygear Python cloud function SDK, please feel free to report an issue.

How to contribute

Pull Requests Welcome!

We really want to see Skygear grows and thrives in the open source community. If you have any fixes or suggestions, simply send us a pull request!

License & Copyright

Copyright (c) 2015-present, Oursky Ltd.
All rights reserved.

This source code is licensed under the Apache License version 2.0 
found in the LICENSE file in the root directory of this source tree. 
An additional grant of patent rights can be found in the PATENTS 
file in the same directory.

Release files for skygear 1.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skygear 1.7.1
File Size Uploaded
skygear-1.7.1.tar.gz 56.6 kB Details

Release files / skygear-1.7.1.tar.gz

Download URL skygear-1.7.1.tar.gz
Size 56.6 kB
Tags Source
SHA-256 checksum
How to use checksums
623c33f3511ddb3782257d5a7ea9f706defa5d10830db2df1eb350b1f9e1993a
BLAKE2b-256 checksum
How to use checksums
d08fab2257a1ee2bf8af582a98f8d5a8ccafadf4559411ce318d981d66676278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

1.7.1 This release

1 release file

1.7.0

1 release file

1.6.1

1 release file

1.6.0

1 release file

1.5.0

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.24.0

1 release file

0.23.0

1 release file

0.22.2

1 release file

0.22.0

1 release file

0.21.0

1 release file

0.20.0

1 release file

0.19.0

1 release file

0.18.0

1 release file

0.17.0

1 release file

0.16.0

1 release file

0.15.0

1 release file

0.14.0

1 release file

0.13.1

1 release file

0.13.0

1 release file

0.12.0

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page