Skip to main content

#python-thrift-pool

#base on: * python2.7 * thrift 0.9.2 thrift lib

#change 2014-12-05 : * dependency thrift 0.9.2 while using thrift-TMultiplexedProtocol

#usage

##install

pip install thriftpl

## using look at tests/test.py <pre> <code> # -- coding: utf-8 --

import os,sys

from thriftpl.client import ThriftClientPool,ThriftClientConfig,HostAndPort,ThriftPoolConfig from test import TestService

address = HostAndPort(“127.0.0.1”,9090) poolConfig = ThriftPoolConfig(minPoolSize=1,maxPoolSize=10,maxWait=500) clientConfig = ThriftClientConfig(clientInterface=TestService.Client) pool = ThriftClientPool(clientConfig,poolConfig,address)

client = pool.getClient() print client.test(“123”) print client.test(“1234”) print client.test(“1235”)

print pool.getClient().test(“abc”) print pool.getClient().test(“abcd”) print pool.getClient().test(“abce”) </code> </pre>

Metadata

Release files for thriftpl 0.2.0

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

Source distribution (sdist)

Source distribution for thriftpl 0.2.0
File Size Uploaded Provenance Actions
thriftpl-0.2.0.zip 8.2 kB Without provenance Details for thriftpl-0.2.0.zip

Release files / thriftpl-0.2.0.zip

Download URL thriftpl-0.2.0.zip
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6e6fb0f5491933039b635e86c35d1a8fdb4fc0ebae5dfd536ba386026a74ff20
BLAKE2b-256 checksum
How to use checksums
12a34a2d2a633d2389b37a3fab015a1655bd7a36119adc6d1d2276e61fad33a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for thriftpl 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

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