One App you can do everything
Project description
๐ Bomiot
One App you can do everything
Powerful Distributed Document Management Framework & Full-Stack Development Platform
๐ Table of Contents
- ๐ Project Introduction
- โจ Core Features
- ๐ Quick Start
- ๐ฆ Installation Guide
- ๐ ๏ธ Command Line Tools
- ๐๏ธ Project Structure
- ๐ง Configuration
- ๐ Deployment Guide
- ๐ Scheduled Tasks
- ๐ค Contributing
- ๐ License
- ๐ Related Links
๐ Project Introduction
Bomiot is a revolutionary distributed document management framework and full-stack development platform, with core components written in Rust, designed to solve modern development pain points. We believe that excellent open-source projects should not only have powerful technology stacks but also focus on developer experience and team collaboration efficiency, making it simple and easy to learn.
๐ฏ Design Philosophy
- Learning Curve: Backend supports Django, FastAPI, Flask; Frontend supports React, Angular, Vue, Django built-in Templates (official provides a Vue set)
- Developer Friendly: Seamless experience from 0 to 1, no complex configuration required
- Team Collaboration: Efficient development team interaction mechanisms
- Modular Design: Plugin-based architecture with extensible functionality
- Easy Deployment: pip installation, convenient for team deployment, supports Python 3.9+
- Signal Mechanism: Data management through signal mechanism, more convenient custom API support
- Enterprise Ready: Production-ready, supports large-scale deployment
โจ Core Features
๐ง Development Tools
- โ Project Scaffolding: One-click project and application creation
- โ Plugin System: Rich plugin ecosystem
- โ Real-time File Monitoring: Enhanced development efficiency
๐ Task Management
- โ Scheduled Tasks: Powerful scheduling system
- โ Task Monitoring: Real-time task status tracking
- โ Error Handling: Intelligent exception handling mechanism
- โ Log Management: Complete logging system
๐ Access Control
- โ Fine-grained Permissions: Role-based access control
- โ JWT Authentication: Secure identity authentication
- โ API Permissions: Interface-level permission management
- โ Operation Audit: Complete operation logs
๐ Internationalization
- โ Multi-language Support: Built-in internationalization framework
- โ Dynamic Language Switching: Runtime language switching
- โ Localization Configuration: Regional settings
๐ System Monitoring
- โ Performance Monitoring: CPU, memory, disk monitoring
- โ Process Management: Real-time system process monitoring
- โ Network Monitoring: Network traffic statistics
- โ Health Checks: System health status detection
๐ Application Market
- โ Application Sharing: Application market pip installation, convenient and fast
- โ Component Market: Hot-pluggable components, dynamic import
๐ Quick Start
1. Install Bomiot
# Install using pip
pip install bomiot
# Or install using poetry
poetry add bomiot
2. Initialize Workspace
# Initialize Bomiot workspace
bomiot init
3. Create Project
# Create new project
bomiot project my-project
# Create new application
bomiot new my-app
4. Database
# Initialize database
bomiot migrate
# If you created a new application, you can generate new database migration files
bomiot makemigrations
5. Create Administrator
# Initialize administrator
bomiot initadmin
# Reset administrator account password
bomiot initpwd
6. Start Service
# Start development server
bomiot run
# Or specify port
bomiot run --host 0.0.0.0 --port 8080
๐ฆ Installation Guide
System Requirements
- Python: 3.9 or higher
- Node.js: 18.19.1 or higher
- Operating System: Windows, macOS, Linux
Modify Frontend
1. Install Frontend Dependencies
# Enter frontend directory
cd my-project/templates
# Install dependencies
yarn install
2. Open Development baseUrl
# Create database migration
vim my-project/templates/src/boot/axios.js
# axios.js code snippet modification
...
const baseURL = 'http://127.0.0.1:8000' // Replace with your actual API URL
const api = axios.create({
baseURL: baseURL ##Open this
})
...
3. Frontend Development Debugging
# Ensure backend is already started
bomiot run
# Restart frontend
cd my-project/templates
&
quasar dev
๐ ๏ธ Command Line Tools
Bomiot provides powerful command line tools to make development and management simple and efficient.
๐ Command Overview
bomiot [command] [options]
๐ง Core Commands
Project Management
# Help command
bomiot -h
# View version number
bomiot -v
# Initialize workspace
bomiot init
# Create new project
bomiot project <project_name>
# Create new application
bomiot new <app_name>
# Create plugin
bomiot plugins <plugin_name>
Application Market
# Application market
bomiot market <project_name>
# Plugin installation, plugins are automatically hot-imported
pip install -y <plugin_name>
or
poetry add <plugin_name>
Database Management
# Create database migration
bomiot makemigrations
# Execute database migration
bomiot migrate
# Load initial data
bomiot loaddata <source>
# Export data
bomiot dumpdata [appname]
User Management
# Create administrator account
bomiot initadmin
# Reset administrator password
bomiot initpwd
Service Management
# Start server
bomiot run [options]
# Deploy project
bomiot deploy <project_name>
System Validation
# Initialize validation Keys
bomiot keys
๐ Server Startup Options
bomiot run [options]
Options:
--host, -b HOST Server host address (default: 127.0.0.1)
--port, -p PORT Server port (default: 8000)
--workers -w WORKERS Number of worker processes (default: 2)
--log-level LEVEL Log level (critical/error/warning/info/debug/trace)
--ssl-keyfile FILE SSL key file
--ssl-certfile FILE SSL certificate file
--proxy-headers Enable proxy headers
--http HTTP HTTP implementation (auto/h11/httptools)
--loop LOOP Async loop (auto/asyncio/uvloop)
--limit-concurrency Maximum concurrent requests (default: 1000)
--backlog Maximum waiting connections (default: 2048)
--timeout-keep-alive HTTP keep-alive timeout (default: 5)
--timeout-graceful-shutdown Graceful shutdown timeout (default: 30)
๐ Usage Examples
# Basic startup
bomiot run
# Test api๏ผmethod("GET")
"name": "django", "url": "http://127.0.0.1:8000/test/"
"name": "fastapi", "url": "http://127.0.0.1:8000/fastapi/test/"
"name": "flask", "url": "http://127.0.0.1:8000/flask/test/"
# Specify port and host
bomiot run --host 0.0.0.0 --port 8080
# Production environment configuration
bomiot run --host 0.0.0.0 --port 80 --workers 4 --log-level info
# SSL configuration
bomiot run --ssl-keyfile key.pem --ssl-certfile cert.pem
๐๏ธ Project Structure
my-project/ # Project directory
โโโ fastapi_app/ # fastapi app
โ โโโ main.py # Main file
โโโ flask_app/ # flask app
โ โโโ main.py # Main file
โโโ language/ # Backend language files
โ โโโ en-US.toml # English translation file
โ โโโ zh-CN.toml # Chinese translation file
โโโ media/ # Static files
โ โโโ img/ # Public images
โ โโโ ***.md # Various md documents
โโโ static/ # Static files
โโโ __version__.py # my-project version
โโโ bomiotconf.ini # Bomiot project identifier file
โโโ files.py # File signals
โโโ receiver.py # Data API signals
โโโ server.py # Server signals
โโโ README.md # ReadME documentation
โโโ setup.ini # Project configuration file
dbs/ # Database files
logs/ # System logs
setup.ini # Project configuration file
...
๐ง Configuration
Environment Configuration
Bomiot uses configuration files to manage different environment settings:
# setup.ini
[project]
name = my-project
[database](requires keys validation)
# Supports multiple databases (sqlite, mysql, oracle, postgresql)
engine = sqlite
name = db_name
user = db_user
password = db_pwd
host = db_host
port = db_port
[local]
time_zone = UTC
[jwt]
user_jwt_time = 1000000
[throttle]
allocation_seconds = 1
throttle_seconds = 10
[request]
limit = 2
[file](requires keys validation)
file_size = 102400000
file_extension = py,png,jpg,jpeg,gif,bmp,webp,txt,md,html,htm,js,css,json,xml,csv,xlsx,xls,ppt,pptx,doc,docx,pdf
Database Configuration
Supports multiple databases:
- SQLite (default)
- MySQL (requires keys validation)
- PostgreSQL (requires keys validation)
- Oracle (requires keys validation)
๐ Deployment Guide
Supervisor
# Generate deployment files
bomiot deploy my-project
# Point supervisord.conf to this file to complete daemon process deployment
Scheduled Tasks
Supported Scheduled Tasks
ARGS_MAP = {
'cron': ['year', 'month', 'day', 'week', 'day_of_week', 'hour', 'minute', 'second', 'start_date', 'end_date','timezone'],
'interval': ['weeks', 'days', 'hours', 'minutes', 'seconds', 'start_date', 'end_date', 'timezone'],
'date': ['run_date', 'timezone']
}
Writing Scheduled Tasks
from bomiot.server.core.signal import bomiot_signals
def my_scheduled_task(sender, **kwargs):
print("Execute scheduled task")
# Send signal to bomiot anywhere, usually written in urls.py, refresh web page to take effect
bomiot_signals.send(sender=my_scheduled_task, msg={
'models': 'JobList',
'data': {
'trigger': 'interval',
'seconds': 60,
'end_date': '2099-05-30',
'description': 'Execute every 60 seconds, end on May 30, 2099'
}
})
One-time Execution Tasks Only
from bomiot.server.core.signal import bomiot_signals
def my_once_task(sender, **kwargs):
print("Execute one-time task")
# Send signal to bomiot anywhere to execute one-time task
bomiot_signals.send(sender=my_once_task, msg={
'models': 'Function'
})
๐ค Contributing
We welcome all forms of contributions!
Ways to Contribute
- Report Bugs: Create Issue
- Feature Requests: Submit Feature Request
- Code Contributions: Fork the project and submit Pull Request
- Documentation Improvements: Help improve documentation
- Community Support: Answer other users' questions
Ways to Contribute Code
# 1. Fork the project
# 2. Clone your Fork
git clone https://github.com/your-username/Bomiot.git
# 3. Create feature branch
git checkout -b feature/amazing-feature
# 4. Commit changes
git commit -m 'Add amazing feature'
# 5. Push to branch
git push origin feature/amazing-feature
# 6. Create Pull Request
Code Standards
- Follow PEP 8 Python code standards
- Add appropriate comments and docstrings
- Write unit tests
- Ensure all tests pass
๐ License
This project is licensed under the APLv2 License - see the LICENSE file for details.
๐ Related Links
๐บ Video Tutorials
๐ Issue Reporting
๐ฌ Community
โญ If this project helps you, please give us a Star!
Made with โค๏ธ by Bomiot Team
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bomiot-0.9.3.tar.gz.
File metadata
- Download URL: bomiot-0.9.3.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c9e0ea95518bc3661b926dca71b88dbe2dd995fa756a10e48adeab953c10cd4
|
|
| MD5 |
c743d6f8673bb51cfab9478b0012c795
|
|
| BLAKE2b-256 |
5b55116b4902a2ea8e7f648c47cab18596ac2b4728b1aee4cc035f493840ec7d
|
File details
Details for the file bomiot-0.9.3-py3-none-any.whl.
File metadata
- Download URL: bomiot-0.9.3-py3-none-any.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e96648c09064462ef0e5b437691541c43afac707c2bbaf9bf4b4f3b9e3c009b2
|
|
| MD5 |
0e40f8903846b8d55cd16ccb9859a7ae
|
|
| BLAKE2b-256 |
4ab672d4a74a039977e88e554a1db23cf3bdd50cd6ba7908f7e0d914399ec6af
|