Skip to main content
Neodym
======

Neodym is a thin message-bus wrapper around asyncore. It includes a client and
a server dispatcher, as well as an easily configurable message-bus. Json serves
as the designated transport syntax.


Examples
========

This is a simple server:

import neodym
import logging

neodym.log_level = logging.DEBUG
baseConfig = neodym.baseConfig()
logging.basicConfig(**baseConfig)

neodym.register('echo', ['cargo'])
neodym.init()

server = neodym.Server(('127.0.0.1', 42742))
server.server_activate()

class EchoHandler(neodym.handler.Handler):
def handle(self, message, connection):
cargo = message.get_attr('cargo')
message.set_attr('cargo', str(cargo).upper())
connection.put(message)


echo_handler = EchoHandler('echo')
server.serve_forever()

This is a simple client:

import neodym
import logging
import time

neodym.log_level = logging.DEBUG
baseConfig = neodym.baseConfig()
logging.basicConfig(**baseConfig)

neodym.register('echo', ['cargo'])
neodym.init()

client = neodym.Client('127.0.0.1', 42742)
client.client_connect()

connection = client.connection()

message = neodym.message.Message('echo', ['foobar'])
connection.put(message)
client.update()

time.sleep(0.1)

client.update()


License
=======

Neodym - A thin message-bus layer around asyncore.
Copyright (C) 2013 Brian Wiborg <baccenfutter@c-base.org>

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.

Metadata

Release files for NeoDym 0.2.1

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

Built distribution (wheel)

Table of built distributions (wheels) for NeoDym 0.2.1
File Interpreter ABI Platform Actions
NeoDym-0.2.1.tar.gz Details for NeoDym-0.2.1.tar.gz

Release files / NeoDym-0.2.1.tar.gz

Download URL NeoDym-0.2.1.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4a0ef35366a286797ae1a382b404ef11300c2234add1407cc30aa4553ef82f79
BLAKE2b-256 checksum
How to use checksums
ee5e475cfab08276733440b3b678b6f4ecd3d66dd6630a161add22606bbd89f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for NeoDym 0.2.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.2.1 This release

1 release file No provenance

0.1.0

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