Skip to main content

An async extension to p4python

Project description

p4async

An extension to the p4python module, adding async functionality to Perforce.

Setup

Use your favorite package manager to install the module into your project

  • pip install p4async
  • uv add p4async

Usage

from p4async import P4Async
p4a = P4Async()
await p4a.aconnect()

All relevant Perforce commands have async counterparts prefixed with a. For example: aconnect(), arun(), arun_clients(), afetch_change(), etc.

Commands are executed with a lock on a worker thread. The way this is done can be customized via subclassing.

Development

  • Use uv for dependency management and virtual environments.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

p4async-0.1.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

p4async-0.1.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file p4async-0.1.4.tar.gz.

File metadata

  • Download URL: p4async-0.1.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.12

File hashes

Hashes for p4async-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e1384a7e6bbb6c762cad8681dfb003803118e3f01bb2ea77bf8d25ae4e9fa914
MD5 4ec14e64dbc1a9ff105fbe3127e1645f
BLAKE2b-256 68dcc129e10786360c4b8ac5e5024b3922cf26bca9390f6395fdb9332712736b

See more details on using hashes here.

File details

Details for the file p4async-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: p4async-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.12

File hashes

Hashes for p4async-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6d3030490dd8bff48573417a2e598270b3f32881c8c37141f6bcac963cef9a25
MD5 279a6c0d8add630ea5c1f7fda5421dfa
BLAKE2b-256 ed3629baa7db9e91f413a966156e2a941d8c62ec1af2cdc5ce3120574ce3310d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page