CogForge is a lightweight, local-module handler designed for Python developers. It allows you to seamlessly code or import standalone codes or modules, turning them into a structured local module management system. Built with security and error handling at its core, CogForge aims to minimize code-breaking errors through an innovative error code system, ensuring your development process is as smooth and efficient as possible.
- Local Module Management: Organize your Python codes and modules locally with an easy-to-use interface.
- Error Handling System: Advanced error code system to help you quickly identify and resolve issues.
- Security First: Designed with security in mind to protect your code during the module handling process.
- Simplicity: Intuitive design for easy adoption and minimal learning curve.
- Efficiency: Minimizes code-breaking errors, enhancing your coding efficiency.
pip install cogforge
-
Create a new module:
from cogforge import Forge my_module = Forge(name="MyModule")
-
Add code or import a module:
my_module.add_code("def hello_world():\\n print('Hello, World!')")
or
my_module.import_module('path/to/your/module')
-
Compile your module:
my_module.compile()
-
Enjoy your structured local module! 🎉
from CogForge import Cogs
from cogs import si
coghandler = Cogs()
# Example usage
coghandler.si.TestFunction("Hi")
With si
being the cog/module in the Cogs folder.
For full documentation, including advanced features and guides, visit CogForge Documentation.
We welcome contributions! See our CONTRIBUTING.md
file for more details on how to get started.
CogForge is released under the MIT License. See the LICENSE file for more details.
If you encounter any problems or have suggestions, please file an issue on the GitHub repository.
Happy Coding! 🎈