Skip to main content

A neutral, open, and global web protocol that allows any person or AI agent to chat with any business, place, or thing.

Project description

PollyWeb

PollyWeb logo

A neutral, open, and global web protocol that allows any person or AI agent to chat with any business, place, or thing.

Usage

from pollyweb import hello
print(hello())

Demo key generator

In addition to the hello helper, the package includes a simple demo module that can generate a public/private key pair. After installation run::

python -m pollyweb.demo.keys

By default this writes pub.pem and priv.pem in the current working directory. You can customize the output names with --pub and --priv, and change the RSA key size with --bits.

A lightweight console script named pollyweb-keys is installed as well, so the same functionality is available via::

pollyweb-keys

For temporary experiments you can use the tmp/ directory which is committed empty but ignored by git. Place any generated keys there to keep your working tree clean::

python -m pollyweb.demo.keys --pub tmp/pub.pem --priv tmp/priv.pem

Another helper script demonstrates a second command. It takes a public key filename and a DKIM identifier; older versions accepted two positional arguments, but the current syntax is key/value based. Both values are ignored and the command simply prints a fixed API URL::

pollyweb-setup dkim=pub.key id=key1

The module form works the same way::

python -m pollyweb.demo.setup dkim=pub.key id=key1

The equal sign can be replaced with a colon if you prefer::

pollyweb-setup dkim:pub.key id:key1

These forms allow easy extension if additional parameters are introduced later.

WebSocket demo client

A third demo command implements the Python WebSocket client described in CLIENT_INSTRUCTIONS.md. It connects to the server endpoint using the domain parameter as the target query string and prints any JSON messages received.

Installation provides a pollyweb-emulate console script; the module can also be run directly::

pollyweb-emulate domain=example.com
# or
python -m pollyweb.demo.emulate domain:example.com

The client relies on the external package websocket-client, which is a required dependency of the distribution.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pollyweb-0.1.10.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

pollyweb-0.1.10-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file pollyweb-0.1.10.tar.gz.

File metadata

  • Download URL: pollyweb-0.1.10.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pollyweb-0.1.10.tar.gz
Algorithm Hash digest
SHA256 c6e6248a6d88eb8e81c1016772e3544b48f2f97f779c0b5e9c24f132b488a3ee
MD5 0683696c24193bdd04ce8dc6b7cfa1df
BLAKE2b-256 818c777154c0e79ab67c2136f0d15eeb2b986109081d271bfc29711e08fd1615

See more details on using hashes here.

File details

Details for the file pollyweb-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: pollyweb-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for pollyweb-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f21ebfb449850249f81e33b2a9f18da016b322d3417fd1488b90c7cc18bea54d
MD5 c9ba9a28e1befec4e9795da85cf47b4d
BLAKE2b-256 67e27494faaca03babe7a0b2191baf478ea4f34535af7d056c685b55bc3b5c9b

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