Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pyjznet
====
python implementation of jznet

## Requirements

You need install gevent and gevent-websocket manually

* gevent
* gevent-websocket

## Install

pip install jznet

## Usage

>>> import pyjznet
>>> from pyjznet import Server
>>> class DemoService(object):
def sayHi(self, name, remote_service):
try:
age = remote_service.call_rpc('demo', 'getAge')
except Exception as e:
logging.error(e)
return str(e)
logging.info('got say hi request of %s who's age is %d' % (name, age))
return "Hi, %s who's age is %d!" % (name, age)
>>> server = Server()
>>> server.add_rpc_service('demo', DemoService())
>>> server.start()

call the service using jznet.js library

Metadata

Release files for jznet 0.0.2-alpha2

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

Source distribution (sdist)

Source distribution for jznet 0.0.2-alpha2
File Size Uploaded
jznet-0.0.2-alpha2.tar.gz 7.4 kB Details

Release files / jznet-0.0.2-alpha2.tar.gz

Download URL jznet-0.0.2-alpha2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ab5d56e5a14b32f248c2020d3c3360e295820e654b4340020ac6ff691f9081eb
BLAKE2b-256 checksum
How to use checksums
d8801cc77e8b7e548d7f19ac8883b63fa148ba8433a32fbd3eacddfeddd5429a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2-alpha2 This release

1 release file

0.0.1

2 release files

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