
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
HTTP-based communication protocol, RPC
protocol
You can install pyxtcp from PyPI with
.. sourcecode:: bash
$ pip install pyxtcp
format:
.. sourcecode:: text
/topic/method?v={params}
server
.. sourcecode:: python
#!/usr/bin/env python
# coding=utf-8
import logging
logging.basicConfig(level=logging.DEBUG)
from pyxtcp.http import RPCServer, Service
service = Service()
class CompanyService(object):
@staticmethod
@service.with_f_rpc
def get_company_by_company_id(company_id):
logging.warn(("HiHi", company_id))
return "wwwwwwwwwwwwwwwww{}".format(company_id)
if __name__ == "__main__":
port = 8001
app = RPCServer(8001, "0.0.0.0")
app.add_service(service)
app.run()
client
.. sourcecode:: python
#!/usr/bin/env python
# coding=utf-8
import logging
logging.basicConfig(level=logging.INFO)
from pyxtcp.http import RPCClient
company = RPCClient("localhost:8001").service_name("CompanyService")
logging.info(company.get_company_by_company_id(company_id=7))
If you need help using pyxtcp
or have found a bug, please open a github issue
_.
.. _github issue: https://github.com/nashuiliang/xtcp/issues
FAQs
Tcp-based communication protocol, RPC protocol
We found that pyxtcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.