Skip to main content

paytime-agent

SDK que liga um agente ao Agentes Hub. Heartbeat, execuções, parada cooperativa, log, alerta e artefato.

Instalação

Não está em índice público. Instale direto do repositório:

pip install git+https://github.com/paytime-ai/paytime-agent-sdk@v0.1.0

No requirements.txt do agente:

paytime-agent @ git+https://github.com/paytime-ai/paytime-agent-sdk@v0.1.0

Fixe a tag. Não use @main — um agente em produção não deve mudar de SDK porque alguém deu merge.

Uso

from paytime_agent import Agent

agent = Agent.start()
agent.run_forever(processar, source=proximo_item)

Três variáveis de ambiente, geradas na tela de pareamento do Hub: AGENT_ID, HUB_URL, HUB_TOKEN.

A especificação completa está em docs/agent-contract.md no repositório do Hub.

Duas garantias

Hub fora do ar não para agente. Toda falha de rede é engolida e registrada no stdout. A única exceção que sobe para o código do agente é StopRequested.

SDK não bloqueia agente. Log, evento e execução vão para fila limitada, entregues por thread de fundo.

Testes

python smoke_test.py    # sobe um Hub falso em 127.0.0.1 e exercita tudo

Metadata

Release files for paytime-agent 0.1.1

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

Source distribution (sdist)

Source distribution for paytime-agent 0.1.1
File Size Uploaded Provenance Actions
paytime_agent-0.1.1.tar.gz 11.3 kB Without provenance Details for paytime_agent-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paytime-agent 0.1.1
File Interpreter ABI Platform Actions
paytime_agent-0.1.1-py3-none-any.whl Python 3 none any Details for paytime_agent-0.1.1-py3-none-any.whl

Total release size: 23.4 kB

Release files / paytime_agent-0.1.1.tar.gz

Download URL paytime_agent-0.1.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
de01d5e692e1aacf04e30dd26038c4ca68c219c4a2326cdd2e1e115c74b8712e
BLAKE2b-256 checksum
How to use checksums
75854af0ee5b103da63c8c0e03de164d6b0da861cac85f35ac638e08ab839c2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / paytime_agent-0.1.1-py3-none-any.whl

Download URL paytime_agent-0.1.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af70a233b2400683b97213eb751479bf35f57c38e462765d2c4e745adc937c5f
BLAKE2b-256 checksum
How to use checksums
11fbecd44959d81419a4f7f487fa5a90e63e4bfdf1fa8ac850107b591db9c8e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for paytime-agent 0.1.1

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.1.1 This release

2 release files 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