EVE ONLINE - Vargur API SDK
Project description
Vargur API SDK
Vargur API SDK is a powerful toolkit for building extensible applications with plugin support. It provides a core set of features including database integration, caching, event bus, and authentication, along with a plugin system that allows easy extension of functionality.
Features
- Plugin system for easy extensibility
- Mock implementations for database integration, caching, event bus, and authentication
- Minimal dependencies for flexibility in implementation
Installation
You can install Vargur API SDK using pip:
pip install vargur-api-sdk
Usage
Here's a basic example of how to use Vargur API SDK:
from fastapi import FastAPI
from vargur_sdk import Plugin, load_plugins, event_bus
app = FastAPI()
class MyPlugin(Plugin):
def __init__(self):
super().__init__("my_plugin")
self.router.add_api_route("/hello", self.hello)
async def hello(self):
return {"message": "Hello from my plugin!"}
# Load all plugins
plugins = load_plugins()
plugins["my_plugin"] = MyPlugin()
# Include plugin routers
for plugin in plugins.values():
app.include_router(plugin.router)
# Example of using the event bus
@app.post("/trigger_event")
async def trigger_event():
await event_bus.publish("some_event", data="Some data")
return {"message": "Event triggered"}
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
Components
- Plugin: Base class for creating plugins
- Config: Configuration settings for the SDK
- Database: Mock database session provider
- Cache: Mock caching implementation
- EventBus: Mock event publishing and subscribing system
- Authentication: Mock user authentication
Configuration
Vargur API SDK uses a Config
class for configuration. You can modify these settings in your application:
from vargur_sdk import config
config.DEBUG = True
config.LOG_LEVEL = "DEBUG"
config.DATABASE_URL = "your_database_url"
config.SECRET_KEY = "your_secret_key"
Documentation
For more detailed information, please refer to the following documentation:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
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
Built Distribution
File details
Details for the file vargur_api_sdk-0.0.1.tar.gz
.
File metadata
- Download URL: vargur_api_sdk-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0730b336f448af0d5c5e864d1397e5acc2858fb7c082ab5a607184a223d366dd |
|
MD5 | 6d318eea4b1de63037dfcd726766f1d6 |
|
BLAKE2b-256 | 581386fb6a86e8e41e5bc5df2c3674fa18346d4097b25fa9c6918351e5bf3bbe |
File details
Details for the file vargur_api_sdk-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: vargur_api_sdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65376c6138540c9e975b3ecc0cf00a107b2fa54ab233cf9039a0cb9b0a6e67a4 |
|
MD5 | b5e61814ccb694d8adc91da0a1c7942f |
|
BLAKE2b-256 | b15c440ecc28e5f1846e8e9c70949517fbc49e611b817108427d093b4dd29a48 |