# PyFusion - All-in-One Python Framework ๐

[](https://pypi.org/project/pyfusion-v1/)
[](https://pypi.org/project/pyfusion-v1/)
[](https://opensource.org/licenses/MIT)
[](https://pypi.org/project/pyfusion-v1/)
[](https://github.com/anshuman365/pyfusion/stargazers)
A comprehensive Python framework that bundles web development, database operations, and utility functions into a single, easy-to-use package.
## โจ Features
### ๐ Web Framework
- **Built-in Web Server** - Flask-based web framework with easy routing
- **HTTP Client** - Robust HTTP client for API interactions
- **Background Server** - Run servers in background threads
- **API Endpoints** - Easy creation of RESTful APIs
- **HTML Templates** - Serve dynamic HTML content
### ๐พ Database Management
- **SQLite Integration** - Built-in database manager with ORM-like interface
- **CRUD Operations** - Simple insert, update, delete, and query methods
- **Key-Value Store** - Generic app data storage
- **Auto-setup** - Automatic table creation and connection management
- **Transaction Support** - Safe database operations
### ๐ง Utilities
- **File Operations** - JSON, CSV, and text file handling
- **Network Tools** - Internet connectivity checks, port scanning, IP detection
- **Data Validation** - Email, phone, password strength validation
- **Data Formatting** - Date, currency, and hashing utilities
- **Security** - Data hashing and input sanitization
### โก Easy to Use
- **Auto-dependency Installation** - Automatically installs required packages
- **Simple Import** - Single import for all components
- **Comprehensive Examples** - Ready-to-run demo code
- **Production Ready** - Well-tested and documented
- **Zero Configuration** - Works out of the box
## ๐ Quick Installation
```bash
pip install pyfusion-v1
```
๐ Quick Start
Web Server Example
```python
from pyfusion_v1 import WebServer
# Create and configure server
app = WebServer()
@app.route('/hello')
def hello():
return {"message": "Hello from PyFusion!", "status": "success"}
@app.route('/users', methods=['POST'])
def create_user():
return {"message": "User created", "method": "POST"}
# Run server
app.run(host='localhost', port=5000)
```
Database Operations
```python
from pyfusion_v1 import Database
# Initialize database
db = Database('my_app.db')
# Insert data
user_id = db.insert('users', {
'username': 'john_doe',
'email': 'john@example.com'
})
# Query data
users = db.fetch_all('SELECT * FROM users')
user = db.fetch_one('SELECT * FROM users WHERE id = ?', [1])
# Update data
db.update('users', {'username': 'john_updated'}, 'id = 1')
# Delete data
db.delete('users', 'id = ?', [1])
```
HTTP Client
```python
from pyfusion_v1 import HttpClient
# Create client
client = HttpClient('https://api.example.com')
# Make requests
response = client.get('/users')
response = client.post('/users', {'name': 'John', 'email': 'john@example.com'})
```
File Operations
```python
from pyfusion_v1 import FileManager
# Read/write JSON
data = FileManager.read_json('config.json')
FileManager.write_json('output.json', data)
# Read/write CSV
csv_data = FileManager.read_csv('data.csv')
FileManager.write_csv('output.csv', csv_data)
# Text files
content = FileManager.read_file('README.md')
FileManager.write_file('copy.txt', content)
```
Utilities
```python
from pyfusion_v1 import Validator, Formatter, NetworkTools
# Validation
print(Validator.is_email('test@example.com')) # True
print(Validator.is_strong_password('Secure123!')) # True
# Formatting
print(Formatter.format_date('2024-01-15')) # 15/01/2024
print(Formatter.format_currency(1500.75)) # โน1,500.75
# Network
print(NetworkTools.check_internet()) # True
print(NetworkTools.get_local_ip()) # 192.168.1.100
```
๐๏ธ Project Structure
```
pyfusion_v1/
โโโ __init__.py # Main package initialization
โโโ assets/
โ โโโ logo.jpg # Project logo
โโโ web/
โ โโโ __init__.py
โ โโโ server.py # WebServer class
โ โโโ client.py # HttpClient class
โโโ database/
โ โโโ __init__.py
โ โโโ manager.py # Database class
โโโ utils/
โโโ __init__.py
โโโ file_ops.py # FileManager class
โโโ network.py # NetworkTools class
โโโ helpers.py # Validator & Formatter classes
```
๐ Examples
Check the examples/ directory for complete working examples:
ยท web_app.py - Full web application example
ยท database_demo.py - Database operations demo
ยท full_stack.py - Complete full-stack application
Running Examples:
```bash
# Clone the repository
git clone https://github.com/anshuman365/pyfusion.git
cd pyfusion
# Run web application example
python examples/web_app.py
# Run database demo
python examples/database_demo.py
# Run full-stack example
python examples/full_stack.py
```
๐ง Requirements
ยท Python 3.6 or higher
ยท Dependencies (automatically installed):
ยท Flask >= 2.0.0
ยท Requests >= 2.25.0
ยท SQLAlchemy >= 1.4.0
ยท Jinja2 >= 3.0.0
๐ฏ Use Cases
ยท Rapid Prototyping - Quickly build MVP applications
ยท Learning Tool - Perfect for beginners learning web development
ยท Internal Tools - Build admin panels and internal dashboards
ยท API Development - Create RESTful APIs with minimal setup
ยท Full-Stack Apps - End-to-end web applications
ยท Scripting - Enhanced scripting with database and web capabilities
๐ค Contributing
We welcome contributions! Please feel free to submit issues, feature requests, or pull requests.
1. Fork the repository
2. Create your feature branch (git checkout -b feature/AmazingFeature)
3. Commit your changes (git commit -m 'Add some AmazingFeature')
4. Push to the branch (git push origin feature/AmazingFeature)
5. Open a Pull Request
Development Setup:
```bash
git clone https://github.com/anshuman365/pyfusion.git
cd pyfusion
pip install -e .
```
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Bug Reports
If you encounter any bugs or have suggestions, please open an issue.
โ FAQ
Q: Is PyFusion suitable for production use?
A: Yes! PyFusion is built with production-ready components and includes proper error handling.
Q: Can I use PyFusion with other databases?
A: Currently PyFusion uses SQLite, but you can extend it to support other databases.
Q: How is this different from Flask/Django?
A: PyFusion provides an all-in-one solution with built-in database, HTTP client, and utilities, reducing setup time.
Q: Is there documentation?
A: Comprehensive documentation is available in the README and code examples.
๐ Links
ยท PyPI: https://pypi.org/project/pyfusion-v1/
ยท GitHub: https://github.com/anshuman365/pyfusion
ยท Issue Tracker: https://github.com/anshuman365/pyfusion/issues
๐ Support
If you need help or have questions:
1. Check the examples directory
2. Open an issue on GitHub
3. Review the source code documentation
---
Made with โค๏ธ by PyFusion Team
Simplifying Python development, one line at a time.
Raw data
{
"_id": null,
"home_page": "https://github.com/anshuman365/pyfusion",
"name": "pyfusion-v1",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "framework, web, database, utilities",
"author": "PyFusion Team",
"author_email": "PyFusion Team <anshumansingh3697@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/6a/e7/9b3dba645ab2b8b3fc8ca363f18dab3844e65badd17337f01698240a9a41/pyfusion_v1-1.0.3.tar.gz",
"platform": null,
"description": "# PyFusion - All-in-One Python Framework \ud83d\ude80\n\n\n\n[](https://pypi.org/project/pyfusion-v1/)\n[](https://pypi.org/project/pyfusion-v1/)\n[](https://opensource.org/licenses/MIT)\n[](https://pypi.org/project/pyfusion-v1/)\n[](https://github.com/anshuman365/pyfusion/stargazers)\n\nA comprehensive Python framework that bundles web development, database operations, and utility functions into a single, easy-to-use package.\n\n## \u2728 Features\n\n### \ud83c\udf10 Web Framework\n- **Built-in Web Server** - Flask-based web framework with easy routing\n- **HTTP Client** - Robust HTTP client for API interactions\n- **Background Server** - Run servers in background threads\n- **API Endpoints** - Easy creation of RESTful APIs\n- **HTML Templates** - Serve dynamic HTML content\n\n### \ud83d\udcbe Database Management\n- **SQLite Integration** - Built-in database manager with ORM-like interface\n- **CRUD Operations** - Simple insert, update, delete, and query methods\n- **Key-Value Store** - Generic app data storage\n- **Auto-setup** - Automatic table creation and connection management\n- **Transaction Support** - Safe database operations\n\n### \ud83d\udd27 Utilities\n- **File Operations** - JSON, CSV, and text file handling\n- **Network Tools** - Internet connectivity checks, port scanning, IP detection\n- **Data Validation** - Email, phone, password strength validation\n- **Data Formatting** - Date, currency, and hashing utilities\n- **Security** - Data hashing and input sanitization\n\n### \u26a1 Easy to Use\n- **Auto-dependency Installation** - Automatically installs required packages\n- **Simple Import** - Single import for all components\n- **Comprehensive Examples** - Ready-to-run demo code\n- **Production Ready** - Well-tested and documented\n- **Zero Configuration** - Works out of the box\n\n## \ud83d\ude80 Quick Installation\n\n```bash\npip install pyfusion-v1\n```\n\n\ud83d\udcd6 Quick Start\n\nWeb Server Example\n\n```python\nfrom pyfusion_v1 import WebServer\n\n# Create and configure server\napp = WebServer()\n\n@app.route('/hello')\ndef hello():\n return {\"message\": \"Hello from PyFusion!\", \"status\": \"success\"}\n\n@app.route('/users', methods=['POST'])\ndef create_user():\n return {\"message\": \"User created\", \"method\": \"POST\"}\n\n# Run server\napp.run(host='localhost', port=5000)\n```\n\nDatabase Operations\n\n```python\nfrom pyfusion_v1 import Database\n\n# Initialize database\ndb = Database('my_app.db')\n\n# Insert data\nuser_id = db.insert('users', {\n 'username': 'john_doe',\n 'email': 'john@example.com'\n})\n\n# Query data\nusers = db.fetch_all('SELECT * FROM users')\nuser = db.fetch_one('SELECT * FROM users WHERE id = ?', [1])\n\n# Update data\ndb.update('users', {'username': 'john_updated'}, 'id = 1')\n\n# Delete data\ndb.delete('users', 'id = ?', [1])\n```\n\nHTTP Client\n\n```python\nfrom pyfusion_v1 import HttpClient\n\n# Create client\nclient = HttpClient('https://api.example.com')\n\n# Make requests\nresponse = client.get('/users')\nresponse = client.post('/users', {'name': 'John', 'email': 'john@example.com'})\n```\n\nFile Operations\n\n```python\nfrom pyfusion_v1 import FileManager\n\n# Read/write JSON\ndata = FileManager.read_json('config.json')\nFileManager.write_json('output.json', data)\n\n# Read/write CSV\ncsv_data = FileManager.read_csv('data.csv')\nFileManager.write_csv('output.csv', csv_data)\n\n# Text files\ncontent = FileManager.read_file('README.md')\nFileManager.write_file('copy.txt', content)\n```\n\nUtilities\n\n```python\nfrom pyfusion_v1 import Validator, Formatter, NetworkTools\n\n# Validation\nprint(Validator.is_email('test@example.com')) # True\nprint(Validator.is_strong_password('Secure123!')) # True\n\n# Formatting\nprint(Formatter.format_date('2024-01-15')) # 15/01/2024\nprint(Formatter.format_currency(1500.75)) # \u20b91,500.75\n\n# Network\nprint(NetworkTools.check_internet()) # True\nprint(NetworkTools.get_local_ip()) # 192.168.1.100\n```\n\n\ud83c\udfd7\ufe0f Project Structure\n\n```\npyfusion_v1/\n\u251c\u2500\u2500 __init__.py # Main package initialization\n\u251c\u2500\u2500 assets/\n\u2502 \u2514\u2500\u2500 logo.jpg # Project logo\n\u251c\u2500\u2500 web/\n\u2502 \u251c\u2500\u2500 __init__.py\n\u2502 \u251c\u2500\u2500 server.py # WebServer class\n\u2502 \u2514\u2500\u2500 client.py # HttpClient class\n\u251c\u2500\u2500 database/\n\u2502 \u251c\u2500\u2500 __init__.py\n\u2502 \u2514\u2500\u2500 manager.py # Database class\n\u2514\u2500\u2500 utils/\n \u251c\u2500\u2500 __init__.py\n \u251c\u2500\u2500 file_ops.py # FileManager class\n \u251c\u2500\u2500 network.py # NetworkTools class\n \u2514\u2500\u2500 helpers.py # Validator & Formatter classes\n```\n\n\ud83d\udcda Examples\n\nCheck the examples/ directory for complete working examples:\n\n\u00b7 web_app.py - Full web application example\n\u00b7 database_demo.py - Database operations demo\n\u00b7 full_stack.py - Complete full-stack application\n\nRunning Examples:\n\n```bash\n# Clone the repository\ngit clone https://github.com/anshuman365/pyfusion.git\ncd pyfusion\n\n# Run web application example\npython examples/web_app.py\n\n# Run database demo\npython examples/database_demo.py\n\n# Run full-stack example\npython examples/full_stack.py\n```\n\n\ud83d\udd27 Requirements\n\n\u00b7 Python 3.6 or higher\n\u00b7 Dependencies (automatically installed):\n \u00b7 Flask >= 2.0.0\n \u00b7 Requests >= 2.25.0\n \u00b7 SQLAlchemy >= 1.4.0\n \u00b7 Jinja2 >= 3.0.0\n\n\ud83c\udfaf Use Cases\n\n\u00b7 Rapid Prototyping - Quickly build MVP applications\n\u00b7 Learning Tool - Perfect for beginners learning web development\n\u00b7 Internal Tools - Build admin panels and internal dashboards\n\u00b7 API Development - Create RESTful APIs with minimal setup\n\u00b7 Full-Stack Apps - End-to-end web applications\n\u00b7 Scripting - Enhanced scripting with database and web capabilities\n\n\ud83e\udd1d Contributing\n\nWe welcome contributions! Please feel free to submit issues, feature requests, or pull requests.\n\n1. Fork the repository\n2. Create your feature branch (git checkout -b feature/AmazingFeature)\n3. Commit your changes (git commit -m 'Add some AmazingFeature')\n4. Push to the branch (git push origin feature/AmazingFeature)\n5. Open a Pull Request\n\nDevelopment Setup:\n\n```bash\ngit clone https://github.com/anshuman365/pyfusion.git\ncd pyfusion\npip install -e .\n```\n\n\ud83d\udcc4 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n\ud83d\udc1b Bug Reports\n\nIf you encounter any bugs or have suggestions, please open an issue.\n\n\u2753 FAQ\n\nQ: Is PyFusion suitable for production use?\nA: Yes! PyFusion is built with production-ready components and includes proper error handling.\n\nQ: Can I use PyFusion with other databases?\nA: Currently PyFusion uses SQLite, but you can extend it to support other databases.\n\nQ: How is this different from Flask/Django?\nA: PyFusion provides an all-in-one solution with built-in database, HTTP client, and utilities, reducing setup time.\n\nQ: Is there documentation?\nA: Comprehensive documentation is available in the README and code examples.\n\n\ud83d\udd17 Links\n\n\u00b7 PyPI: https://pypi.org/project/pyfusion-v1/\n\u00b7 GitHub: https://github.com/anshuman365/pyfusion\n\u00b7 Issue Tracker: https://github.com/anshuman365/pyfusion/issues\n\n\ud83d\udcde Support\n\nIf you need help or have questions:\n\n1. Check the examples directory\n2. Open an issue on GitHub\n3. Review the source code documentation\n\n---\n\nMade with \u2764\ufe0f by PyFusion Team\n\nSimplifying Python development, one line at a time.\n",
"bugtrack_url": null,
"license": null,
"summary": "All-in-One Python Framework with built-in web, database, and utilities",
"version": "1.0.3",
"project_urls": {
"Bug Reports": "https://github.com/anshuman365/pyfusion/issues",
"Documentation": "https://github.com/anshuman365/pyfusion#readme",
"Homepage": "https://github.com/anshuman365/pyfusion",
"Source": "https://github.com/anshuman365/pyfusion"
},
"split_keywords": [
"framework",
" web",
" database",
" utilities"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "14cf12013729961b293d7af2acf5667e9e7cbfaa1e7b49d54672bd2702ceba5d",
"md5": "923c39d8daebf8a01b31cb0a46a40bdc",
"sha256": "a1ed042a9023c8d20c7afd6939ee3f802f7df40d9c5001ada6de483ce9ec1f42"
},
"downloads": -1,
"filename": "pyfusion_v1-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "923c39d8daebf8a01b31cb0a46a40bdc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 62130,
"upload_time": "2025-10-26T09:32:13",
"upload_time_iso_8601": "2025-10-26T09:32:13.074228Z",
"url": "https://files.pythonhosted.org/packages/14/cf/12013729961b293d7af2acf5667e9e7cbfaa1e7b49d54672bd2702ceba5d/pyfusion_v1-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6ae79b3dba645ab2b8b3fc8ca363f18dab3844e65badd17337f01698240a9a41",
"md5": "c443a187d51f7f29a8fa1f833e2c9f03",
"sha256": "ba29d7f1f656c67ac8424a10dfd1485412808c57ea6bb3fe5de0510c85b3fd99"
},
"downloads": -1,
"filename": "pyfusion_v1-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "c443a187d51f7f29a8fa1f833e2c9f03",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 66278,
"upload_time": "2025-10-26T09:32:14",
"upload_time_iso_8601": "2025-10-26T09:32:14.923577Z",
"url": "https://files.pythonhosted.org/packages/6a/e7/9b3dba645ab2b8b3fc8ca363f18dab3844e65badd17337f01698240a9a41/pyfusion_v1-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-26 09:32:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "anshuman365",
"github_project": "pyfusion",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "flask",
"specs": [
[
">=",
"2.0.0"
]
]
},
{
"name": "requests",
"specs": [
[
">=",
"2.25.0"
]
]
},
{
"name": "sqlalchemy",
"specs": [
[
">=",
"1.4.0"
]
]
},
{
"name": "jinja2",
"specs": [
[
">=",
"3.0.0"
]
]
}
],
"lcname": "pyfusion-v1"
}