Airmise
Expose local runtime namespace to local network area. Others who have access to the network can call functions, instantiate classes, use variables, import modules etc.
How to use
Access variables
# server.py
import airmise as air
a = 'alpha'
b = []
air.run_server(globals(), port=...)
# client.py
import airmise as air
air.connect(host=..., port=...)
c = air.exec(
'''
print(a)
print(b)
b.append(a)
return b
'''
)
print(c) # -> ['alpha']
Call functions
# server.py
import airmise as air
def foo(bar):
print(bar)
return 'ok'
air.run_server(globals(), port=...)
# client.py
import airmise as air
air.connect(host=..., port=...)
air.exec("return foo('bar')")
Iterator
# server.py
import airmise as air
def foo(count: int):
for i in range(count):
yield i
air.run_server(globals(), port=...)
# client.py
import airmise as air
air.connect(host=..., port=...)
for i in air.call('foo', 10):
print(i)
Share codebase
Server and client can use the same code base, but with different
if __name__ == '__main__':
# server.py
import airmise as air
class Bar:
def __init__(self, name: str):
self.name = name
def baz(self):
return f'{self.name} 123'
if __name__ == '__main__':
air.register(Bar)
air.run_server(port=...)
# client.py
import airmise as air
class Bar:
def __init__(self, name: str):
self.name = name
def baz(self):
return f'{self.name} 123'
if __name__ == '__main__':
remote_bar = air.delegate(Bar, 'Alice')
print(remote_bar) # -> <airmise.RemoteCall>
print(remote_bar.baz()) # -> 'Alice 123'
Metadata
Release files for airmise 3.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| airmise-3.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / airmise-3.2.3-py3-none-any.whl
| Download URL | airmise-3.2.3-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d9b81210b92e2cac6eb2146fd1e28e12f693d123fe4f236ff607da8261b9a90
|
|
BLAKE2b-256 checksum How to use checksums |
59a8fb3e4a55a8b812eb0344278968f5249f6ddb6636db125f97a4fcafe278b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for airmise 3.2.3
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.