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


## 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-alpha

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-alpha
File Size Uploaded
jznet-0.0.2-alpha.tar.gz 7.3 kB Details

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

Download URL jznet-0.0.2-alpha.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7128c71fc6b5ad55ea62ffb055fe4e790cffdc397615a9ad66a491be21fc82c0
BLAKE2b-256 checksum
How to use checksums
76598a36284df40d9ed800169df6a473440dd9ec5669d8ff93b25b0e00fb56d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2-alpha 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