This release is a pre-release and may not be stable for production use.
Platform Lookup Service
A FastAPI-based microservice for managing platform registrations and lookups. This service provides a RESTful API for registering and managing platforms with their associated credentials and network addresses.
Features
- Platform registration and management
- Thread-safe operations for concurrent access
- Input validation using Pydantic models
- Support for platform grouping
- JSON-based persistent storage
- RESTful API with OpenAPI documentation
Requirements
- Python 3.x
- FastAPI
- Uvicorn
Installation
-
From pypi
pip install volttron-platform-lookup
-
From source code:
git clone [repository-url] cd platform-lookup poetry install
Usage
-
Start the server:
volttron-platform-lookup <optional port. defaults to 8000>
-
The API will be available at
http://localhost:8000 -
Access the API documentation at
http://localhost:8000/docs
API Endpoints
The service provides RESTful endpoints for platform management. All data is exchanged in JSON format.
Platform Model
Each platform registration includes:
id: Unique identifier for the platform (alphanumeric, underscores, and hyphens allowed)address: Network address where the platform can be reached (IP, domain, or URI)public_credentials: Authentication credential (minimum 16 characters)group: Optional grouping parameter (defaults to "default")
Example platform registration:
{
"id": "platform-123",
"address": "tcp://example.com",
"public_credentials": "abcdef1234567890",
"group": "production"
}
Data Storage
Platform data is stored in platforms.json with thread-safe access mechanisms to prevent race conditions during concurrent operations.
Security
- Input validation for all API endpoints
- Credential length requirements
- Address format validation
- Thread-safe operations
Contributing
- Fork the repository
- Create a feature branch
- Submit a pull request
License
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.
Copyright 2025 Battelle Memorial Institute
Disclaimer Notice
This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.
Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.
Metadata
Release files for volttron-platform-lookup 0.1.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| volttron_platform_lookup-0.1.0rc2.tar.gz | 10.1 kB | Without provenance | Details for volttron_platform_lookup-0.1.0rc2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| volttron_platform_lookup-0.1.0rc2-py3-none-any.whl | Python 3 | none | any | Details for volttron_platform_lookup-0.1.0rc2-py3-none-any.whl |
Total release size: 21.9 kB
Release files / volttron_platform_lookup-0.1.0rc2.tar.gz
| Download URL | volttron_platform_lookup-0.1.0rc2.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
febc5e9c261e0f98aed194d544af99a938bc77807a5e9f6bef04488f44eddd40
|
|
BLAKE2b-256 checksum How to use checksums |
6ed9d394952ec081f1aa0a5a48775113434cd553a5ea2646045c6689505ab174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.21 Linux/6.8.0-1064-azure
|
Release files / volttron_platform_lookup-0.1.0rc2-py3-none-any.whl
| Download URL | volttron_platform_lookup-0.1.0rc2-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b48aa925b0663adc123fd3000b8e8004763912036173e6822a1f5b786b7ed58
|
|
BLAKE2b-256 checksum How to use checksums |
4719f7395a27968ad45307af86c4ae429ccbdbca00d6f65fb77a29d3a99907c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.10.21 Linux/6.8.0-1064-azure
|
Security for volttron-platform-lookup 0.1.0rc2
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.