semvec/pypi-packages huggingface dataset:
agenticos 0.0.3.156507
Tapping into the power of AI agents
Requires Python: <=3.13,>=3.10

# AgenticOS

AgenticOS is a flexible and modular framework designed to help developers deploy and manage AI-driven workflows using agent-based systems. The framework is designed to be LLM-agnostic and core-tech switchable in the future, allowing developers to integrate their preferred agent systems seamlessly.

The goal is to provide a framework that integrates easily into your existing or planned infrastructure, giving you the flexibility to focus on AI task execution without complex setups.

# Geting started

## Installing the prerequisites

### pipx
This is currently a recomended way to install comamnds that are available accros your systems like build backends or other code generators. Please follow instructions for your operating system: https://pipx.pypa.io/stable/installation/

### hatch
This build backend is required by crew AI. You can install it with pipx:
```sh
pipx install hatch
```
For other installation options please check the official instructions: https://python-poetry.org/docs/#ci-recommendations

### CrewAI
Please install CrewAI using the pipx:
```sh
pipx install crewai
```

> :warning:  Please make sure that you update CrewAI before every use.

## Creating a new project
1. Create a new CrewAI crew. If you are installing agenticos alongside exising CrewAI project please go to point 3.
```sh
crewai create crew new_crew
```
2. Generate venv and install dependencies:
```sh
cd new_crew
hatch shell
```
3. Install agenticos package using poetry:
```sh
pip install agenticos
```
4. Add agenticos to `pyproject.toml`. Use the following command to find out which version do you need.
```
pip freeze | grep agenticos
``` 
5. Generate agentic scaffold files:
```sh
agentic init
```

It will generate following files in your project:
```
[app_root]
|-src
  |-agentic
    |-agentic_node.py
    |-agentic_config.py
```
> :warning: This configuration should work with out-of the box crewai project. If you made any changes to project structure you will have to update `agentic_config.py` file.

## Running
Currentic agentic node may be run only as a standalone HTTP server. Production fastapi mode:
```bash
agentic run
```
or dev fastapi mode:
```bash
agentic run --dev
```

## Config via ENV VARS
Order of priority CLI ARGS > ENV_VARS > DEFAULTS. Current env vars with defaults:
```python
    AUTH_TOKEN: str = ""
    REGISTRY_URL: str = "ws://localhost:8080"
    NODE_MODE: str = "httpserver"
    HTTP_PORT: int = 8000
    AGENTIC_CONFIG_PATH: str = "src/agentic/agentic_config.py"
    HTTP_HEALTHCHECK : bool = False
```
c9lab-security 0.3
Middleware for encrypting and decrypting requests and responses in Django Rest Framework

# c9lab-security

This package provides middleware for encrypting and decrypting requests and responses in Django Rest Framework.

## Installation

```bash
pip install c9lab-security



MIDDLEWARE = [
    ...,
    'c9lab_security.middleware.DecryptRequestMiddleware',
    'c9lab_security.middleware.EncryptResponseMiddleware',
]

# Set the encryption key
from c9lab_security.encryption_utility import EncryptionUtility
EncryptionUtility.set_key(b'your-16-byte-key')  # Use a 16, 24, or 32 byte key




Ensure your requests and responses use the application/json content type and include the encrypted data under the statistics field.
auto-view-generator 0.1.5
A Django management command to generate views and serializers based on models.

Django View and Serializer Generator
This Django management command automatically generates views.py and serializers.py files with basic viewsets and serializers for each model defined in the projectâ€™s models.py file. It saves development time by creating boilerplate code for API views and serializers based on your models.

Features
Automatically generates views.py and serializers.py files based on models defined in a specified Django app.
Creates a ModelViewSet for each model in views.py to enable CRUD operations.
Generates a ModelSerializer for each model in serializers.py, including all model fields.
Installation
To install this library, use pip:

bash
Copy code
pip install django-view-serializer-generator
Then, add the app to your Django project's INSTALLED_APPS:

python
Copy code
# settings.py
INSTALLED_APPS = [
    # Other installed apps
    'view_serializer_generator',  # Add the generator app
]
Usage
Navigate to your Django project directory where manage.py is located.

Run the command to generate views and serializers:

bash
Copy code
python manage.py generate_views_and_serializers
The command will look for models defined in the app specified in the code and generate views.py and serializers.py with the appropriate viewsets and serializers.

Example Output
The command creates views.py and serializers.py in the specified app (e.g., Paypal), with code similar to:

serializers.py

python
Copy code
from rest_framework import serializers
from .models import YourModel

class YourModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = YourModel
        fields = '__all__'
views.py

python
Copy code
from rest_framework import viewsets
from .models import YourModel
from .serializers import YourModelSerializer

class YourModelViewSet(viewsets.ModelViewSet):
    queryset = YourModel.objects.all()
    serializer_class = YourModelSerializer
Folder Structure
To follow best practices, maintain the following folder structure:

markdown
Copy code
myproject/
â”œâ”€â”€ myapp/
â”‚   â”œâ”€â”€ management/
â”‚   â”‚   â””â”€â”€ commands/
â”‚   â”‚       â””â”€â”€ generate_views_and_serializers.py
â”‚   â”œâ”€â”€ migrations/
â”‚   â”œâ”€â”€ __init__.py
â”‚   â”œâ”€â”€ models.py
â”‚   â”œâ”€â”€ serializers.py
â”‚   â”œâ”€â”€ views.py
â”‚   â”œâ”€â”€ urls.py
â”œâ”€â”€ manage.py
â”œâ”€â”€ settings.py
Customizing the Command
By default, this command looks for an app named Paypal. If your app has a different name, update the app_name variable in generate_views_and_serializers.py:

python
Copy code
app_name = 'YourAppName'
License
This project is licensed under the MIT License - see the LICENSE file for details.