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.3.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.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: p4async-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 537914696e4a153b42147011a07267e5d301ca58f326f12a2241b7d6886aed91
MD5 0e685cd623d1a5ed054bcda8ff968bf1
BLAKE2b-256 cfc11345eb2b62d6c4f402a0cbf07f0cd8af39e9df1785a01f977b1f7ee28fad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: p4async-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 67fdc44ecc125bda13540e3270f72a1e6ffc9545cf20f4f5851a3f6270683318
MD5 f46e64bf755e767c6e519b14f3257434
BLAKE2b-256 b862f0c2d3a10a71e3dd00100d0dc2deb11357df4326241388a3636c44e56e5a

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