Metadata-Version: 2.4
Name: Bloomerp
Version: 1.0.1
Summary: Bloomerp is an open-source Business Management Software framework that lets you create fully functional business management applications just by defining your Django database models.
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: annotated-types==0.7.0
Requires-Dist: anyio==4.6.2.post1
Requires-Dist: arabic-reshaper==3.0.0
Requires-Dist: argon2-cffi==23.1.0
Requires-Dist: argon2-cffi-bindings==21.2.0
Requires-Dist: arrow==1.3.0
Requires-Dist: asgiref==3.8.1
Requires-Dist: asn1crypto==1.5.1
Requires-Dist: asttokens==3.0.0
Requires-Dist: async-lru==2.0.4
Requires-Dist: attrs==24.3.0
Requires-Dist: babel==2.16.0
Requires-Dist: beautifulsoup4==4.12.3
Requires-Dist: binaryornot==0.4.4
Requires-Dist: bleach==6.2.0
Requires-Dist: Brotli==1.1.0
Requires-Dist: certifi==2024.8.30
Requires-Dist: cffi==1.17.1
Requires-Dist: chardet==5.2.0
Requires-Dist: channels==4.1.0
Requires-Dist: charset-normalizer==3.3.2
Requires-Dist: click==8.1.7
Requires-Dist: colorama==0.4.6
Requires-Dist: crispy-bootstrap5==2024.2
Requires-Dist: cryptography==43.0.1
Requires-Dist: cssselect2==0.7.0
Requires-Dist: daphne==4.1.2
Requires-Dist: decorator==5.1.1
Requires-Dist: defusedxml==0.7.1
Requires-Dist: distro==1.9.0
Requires-Dist: Django==5.1.1
Requires-Dist: django-browser-reload==1.18.0
Requires-Dist: django-cotton==2.6.1
Requires-Dist: django-crispy-forms==2.3
Requires-Dist: django-filter==24.3
Requires-Dist: django-formtools==2.5.1
Requires-Dist: django-htmx==1.19.0
Requires-Dist: django-model-utils==5.0.0
Requires-Dist: django-tailwind-4==0.1.4
Requires-Dist: djangorestframework==3.15.2
Requires-Dist: et-xmlfile==1.1.0
Requires-Dist: executing==2.1.0
Requires-Dist: fonttools==4.54.0
Requires-Dist: h11==0.14.0
Requires-Dist: html5lib==1.1
Requires-Dist: httpcore==1.0.6
Requires-Dist: httpx==0.27.2
Requires-Dist: idna==3.10
Requires-Dist: importlib_metadata==8.5.0
Requires-Dist: jaraco.classes==3.4.0
Requires-Dist: jaraco.context==6.0.1
Requires-Dist: jaraco.functools==4.1.0
Requires-Dist: Jinja2==3.1.4
Requires-Dist: jiter==0.7.0
Requires-Dist: json5==0.10.0
Requires-Dist: jsonfield==3.1.0
Requires-Dist: jsonpatch==1.33
Requires-Dist: jsonpointer==3.0.0
Requires-Dist: jsonschema==4.23.0
Requires-Dist: jsonschema-specifications==2024.10.1
Requires-Dist: langchain-core<1.0.0,>=0.3.67
Requires-Dist: langchain-openai==0.2.12
Requires-Dist: langgraph==0.2.60
Requires-Dist: langgraph-checkpoint>=2.1.0
Requires-Dist: langgraph-sdk==0.1.47
Requires-Dist: langsmith<1.0.0,>=0.3.45
Requires-Dist: lxml==5.3.0
Requires-Dist: markdown-it-py==3.0.0
Requires-Dist: MarkupSafe==3.0.2
Requires-Dist: mdurl==0.1.2
Requires-Dist: mistune==3.0.2
Requires-Dist: more-itertools==10.5.0
Requires-Dist: msgpack==1.1.0
Requires-Dist: nh3==0.2.18
Requires-Dist: numpy==2.1.1
Requires-Dist: openai==1.57.2
Requires-Dist: openpyxl==3.1.5
Requires-Dist: orjson==3.10.12
Requires-Dist: oscrypto==1.3.0
Requires-Dist: overrides==7.7.0
Requires-Dist: packaging==24.1
Requires-Dist: pandas==2.2.2
Requires-Dist: pandocfilters==1.5.1
Requires-Dist: pillow==10.4.0
Requires-Dist: platformdirs==4.3.6
Requires-Dist: plotly==5.24.1
Requires-Dist: prometheus_client==0.21.1
Requires-Dist: psutil==6.1.0
Requires-Dist: pure_eval==0.2.3
Requires-Dist: pycparser==2.22
Requires-Dist: pydantic==2.9.2
Requires-Dist: pydantic_core==2.23.4
Requires-Dist: pydyf==0.11.0
Requires-Dist: Pygments==2.18.0
Requires-Dist: pyHanko==0.25.1
Requires-Dist: pyhanko-certvalidator==0.26.3
Requires-Dist: pypdf==5.0.0
Requires-Dist: PyPDF2==3.0.1
Requires-Dist: pyphen==0.16.0
Requires-Dist: pypng==0.20220715.0
Requires-Dist: python-bidi==0.6.0
Requires-Dist: python-dateutil==2.9.0.post0
Requires-Dist: python-json-logger==3.2.1
Requires-Dist: python-slugify==8.0.4
Requires-Dist: pytz==2024.2
Requires-Dist: PyYAML==6.0.2
Requires-Dist: qrcode==7.4.2
Requires-Dist: referencing==0.35.1
Requires-Dist: regex==2024.11.6
Requires-Dist: reportlab==4.2.2
Requires-Dist: requests==2.32.3
Requires-Dist: requests-toolbelt==1.0.0
Requires-Dist: rfc3339-validator==0.1.4
Requires-Dist: rfc3986==2.0.0
Requires-Dist: rfc3986-validator==0.1.1
Requires-Dist: rich==13.9.4
Requires-Dist: rpds-py==0.22.3
Requires-Dist: setuptools==75.0.0
Requires-Dist: six==1.16.0
Requires-Dist: sniffio==1.3.1
Requires-Dist: soupsieve==2.6
Requires-Dist: sqlparse==0.5.1
Requires-Dist: stack-data==0.6.3
Requires-Dist: svglib==1.5.1
Requires-Dist: swapper==1.4.0
Requires-Dist: tenacity==9.0.0
Requires-Dist: text-unidecode==1.3
Requires-Dist: tiktoken==0.8.0
Requires-Dist: tinycss2==1.3.0
Requires-Dist: tornado==6.4.2
Requires-Dist: tqdm==4.66.6
Requires-Dist: types-python-dateutil==2.9.0.20241206
Requires-Dist: typing_extensions==4.12.2
Requires-Dist: tzdata==2024.1
Requires-Dist: tzlocal==5.2
Requires-Dist: uritools==4.0.3
Requires-Dist: urllib3==2.2.3
Requires-Dist: webencodings==0.5.1
Requires-Dist: websocket-client==1.8.0
Requires-Dist: xhtml2pdf==0.2.16
Requires-Dist: zipp==3.21.0
Requires-Dist: zopfli==0.2.3
Requires-Dist: crispy-tailwind==1.0.3
Requires-Dist: fa6-icons>=0.0.3
Requires-Dist: celery>=5.4.0
Provides-Extra: postgres
Requires-Dist: psycopg2-binary==2.9.9; extra == "postgres"

# Bloomerp

Bloomerp is an open-source Business Management Software framework that lets you create fully functional business management applications just by defining your Django database models.

It's out-of-the-box functionality gives you the ability to create advanced apps in minutes whilst maintaining the ability to add custom functionality without too much effort.

At its core, it leverages the popular Python framework Django and HTMX to provide robust and fast applications.

## Key features

Bloomerp comes packed with a variety of features:

- **Intuitive CRUD Views**: With integrated access control provided by Django.
- **Advanced List Views**: Offering powerful filtering capabilities and different view options (table, kanban, calendar, etc.).
- **Search Functionality**: A global, permission-aware search bar that allows you to search across all your data, giving you access to various parts of the application with immense speed.
- **Advanced permission system**: Granular yet intuitive control over who can see and do what within your application, by leveraging an RBAC system that goes beyond Django's or even Guardian's capabilities.
- **Customizable Workspaces**: Create intuitive workspaces that contain a variety of different tiles
    - **Analytics Tiles**: Display key metrics and insights from your data.
    - **Link Tiles**: Quick access to important views or external resources.
    - **Text Tiles**: For important notes or instructions.
    - **Canvas Tiles**: A flexible space where you can use Excalidraw to create diagrams, flowcharts, and more.
- **Bulk Uploads**: For efficiently importing data into models.
- **REST APIs**: Automatically generated permission-aware APIs for all your models, with the ability to customize public access and user access that go beyond the already impresive permission system provided by Bloomerp.
- **SDK Support**: Generate SDKs based on your model structure. Support for Python, JavaScript, and Typescript.
- **File System UI**: An intuitive interface including folder structures.
- **Commenting System**: Allows you to comment on specific objects.

## Getting Started

### Install Bloomerp

Download Bloomerp via pip

```sh
pip install bloomerp
```

or via uv (if you haven't tried uv yet, you're missing out!)

```sh
uv add bloomerp
```

Bloomerp has a dependency on Django and other libraries that will be automatically installed when you install Bloomerp.

### Setting up the project

Once you have Bloomerp installed, you can create a new project by running the command below. Note that you can also add Bloomerp to an existing Django project, but this requires you to do some manual tweaking with the settings, etc. So for the sake of simplicity, we'll start with a fresh project and will be using Bloomerp's cli tool to generate the necessary files and folders.

For this tutorial, let's create a small CRM application to manage customers, products, and orders.

```sh
bloomerp startproject mycrm
```

### Create Your Models

Let's define some basic models for our sales application: `Customer`, `Product`, and `Order`.

```python
from django.db import models
from bloomerp.models import BloomerpModel
from bloomerp.models.fields import BloomerpFileField
from django.utils import timezone
from bloomerp.models.definition import (
    BloomerpModelConfig,
    ApiSettings
)
from bloomerp.field_types import Lookup

class Customer(BloomerpModel):
    bloomerp_config = BloomerpModelConfig() # No particular configuration needed for this model

    name = models.CharField(max_length=255)
    email = models.EmailField()
    phone = models.CharField(max_length=15)
    address = models.TextField()


class Product(BloomerpModel):

    # We wanna set up the API settings so that the e-commerce frontend can easily retrieve product information without needing to log in. We also want to make sure that only active products are retrieved via the API, so we add a filter for that.

    bloomerp_config = BloomerpModelConfig(
        api_settings=ApiSettings(
            enable_auto_generation=True,  # Automatically generate API endpoints for this model
            public_access=[
                PublicAccessRule(
                    row_actions=['list', 'retrieve'] # Allow public to list and retrieve products
                    field_actions={
                        "name": ["list", "retrieve"],
                        "description": ["list", "retrieve"],
                        "image": ["list", "retrieve"],
                        "price": ["list", "retrieve"],
                    },
                    filters=[
                        ApiFilter(
                            ApiFilterRule(
                                field="active",
                                operator=Lookup.EQUALS.value.id,
                                value=True
                            )
                        )
                    ]
                )
            ]
        )
    )

    name = models.CharField(max_length=255)
    description = models.TextField(blank=True, null=True)
    image = BloomerpFileField(allowed_extensions=['.jpg', '.jpeg', '.png'])
    price = models.DecimalField(max_digits=10, decimal_places=2)
    active = models.BooleanField(default=True)

    

class Order(BloomerpModel):
    STATUS_CHOICES = (
        ('pending', 'Pending'),
        ('processing', 'Processing'),
        ('completed', 'Completed'),
        ('cancelled', 'Cancelled'),
    )
    date = models.DateField(default=timezone.now)
    product = models.ForeignKey(Product, on_delete=models.CASCADE)
    quantity = models.IntegerField()
    status = models.CharField(max_length=255, choices=STATUS_CHOICES, default='pending')
```

**Notes:**

1. **Inherit from `BloomerpModel`**: This ensures compatibility with Bloomerp's features.


Make migrations for your new models:

```sh
python manage.py makemigrations sales
python manage.py migrate sales
```

Add the endpoints in your `urls.py` file.
```python
# urls.py
from django.urls import path, include

urlpatterns = [
    path("admin/", admin.site.urls),
    path("", include("bloomerp.urls")),  # Include Bloomerp's URLs
]
```


Every time you update your models, run:

```sh
python manage.py save_application_fields
```

Create a superuser to log in:

```sh
python manage.py createsuperuser
```

Start the server:

```sh
python manage.py runserver
```

## Found Errors? 🛑

If you encounter any bugs or issues, please let us know:

- **Open an Issue**: Report it on our GitHub issues page with details about the problem.
- **Contact Us**: Reach out directly via email or our community channels.

Your feedback helps us improve Bloomerp for everyone!

## Roadmap 🧭

We're currently at **version 1.0.0**, and we have big plans for the future. Here's what's coming up:

- **Reintroduction of BloomAI**: The previous AI assistant feature will be reintroduced with enhanced capabilities, including better natural language understanding and more powerful automation features.
- **Workflow Automation**: We're planning to add a workflow automation engine that will allow users to create custom workflows and automate repetitive tasks across their applications.
- **More Tile Types**: We will be adding more types of tiles for the customizable workspaces, such as calendar tiles, task list tiles, and more.
- **More**: We have a lot of other features in the pipeline, and we're always open to suggestions from the community on what to prioritize next.


Stay tuned for updates, and feel free to contribute to any of these upcoming features!

## Want to Contribute? 🤝

Each time I've referred to 'we' throughout this document, I'm actually only refering to myself (gotta stay professional). However I would love your help in making Bloomerp a **WE** project in the future 😉 ! Whether it's fixing bugs, adding new features, or improving documentation, your contributions are more than welcome.

- **Fork the Repository**: Start by forking the Bloomerp repository on GitHub.
- **Create a Branch**: Make a new branch for your feature or bug fix.
- **Submit a Pull Request**: When you're ready, submit a pull request for review.

Feel free to open issues for feature requests or discussions.


## License
By contributing to this project, you agree that your contributions will be licensed under the AGPL v3 and may be used in commercially licensed versions of this software.

This project is licensed under the [GNU Affero General Public License v3](LICENSE.txt).

For commercial licensing options, please contact [bloomer.david@outlook.com](mailto:bloomer.david@outlook.com).
