semvec/pypi-packages huggingface dataset:
smarf 0.1.0
Smart, code-aware functions.
Requires Python: <4.0,>=3.11

# SMARF: Smart, Code-Aware Functions

SMARF (Smart, Code-Aware Functions) is a Python library that provides intelligent, context-aware function calls using LLMs. It analyzes the context in which it's called and performs appropriate operations based on the available variables and inferred intent.

For now, it only works with OpenAI models (gpt-4o-mini). So set your `OPENAI_API_KEY` environment variable.

## Installation

To install SMARF, use pip:
```bash
pip install smarf
```

Or if you're using Poetry:

```bash
poetry add smarf
```

## Usage

```python
from smarf.smart_call import smart_call

def get_country_data(city: str):
    country_data = smart_call()

    return {
        "country_name": country_data["name"],
        "country_code": country_data["code"],
        "country_flag": country_data["emoji"],
    }
```

## License

This project is licensed under the MIT License.
iiris-redshift 0.0.5
Generic package which can be used for redshift
Requires Python: >=3.6

# Installation Instructions

To install the `common` package and handle custom dependencies, use the following commands:

1. **Install `common` with custom index URL**:

   ```bash
   pip install --extra-index-url https://pypi.iris.informa.com/simple -e .


<!-- pip install -r requirements.txt --extra-index-url https://pypi.iris.informa.com/simple -->
iiris-postgres 0.0.3
Generic package which can be used for postgres
Requires Python: >=3.6

# Installation Instructions

To install the `common` package and handle custom dependencies, use the following commands:

1. **Install `common` with custom index URL**:

   ```bash
   pip install --extra-index-url https://pypi.iris.informa.com/simple -e .


<!-- pip install -r requirements.txt --extra-index-url https://pypi.iris.informa.com/simple -->
iiris-elasticsearch 0.0.3
Generic package which can be used for elasticsearch
Requires Python: >=3.6

# Installation Instructions

To install the `common` package and handle custom dependencies, use the following commands:

1. **Install `common` with custom index URL**:

   ```bash
   pip install --extra-index-url https://pypi.iris.informa.com/simple -e .


<!-- pip install -r requirements.txt --extra-index-url https://pypi.iris.informa.com/simple -->
converso 0.2.0
Artificial Intelligence assistant
Requires Python: <4.0,>=3.10

# converso
Converso is a LangChain extensions that streamlines data acquisition and action execution through natural language

## Change Log

### 0.2.0
- Update dpendencies:
    - LangChain: 0.3.0
    - LangGraph: 0.2.23

### 0.1.0
- Initial release
network-intrusion-detection 0.1.4
A Python package for CNN-LSTM model pre-trained on CICIDS2017 and finetuned on UNSW-NB15 for network intrusion detection.

# Intrusion Detection Package

This package provides a CNN-LSTM-based intrusion detection model that can be used to classify network traffic as benign or malicious.

## Installation

You can install the package using pip:

pip install net_intrusion_detection


## Usage

To use the model, follow these steps:

1. Load your pre-trained model (.h5 file).
2. Preprocess your network traffic data (CSV format).
3. Make predictions on the data.

Example:

```python
from network_intrusion_detection import make_prediction

predictions = make_prediction('path_to_model.h5', 'path_to_csv_file.csv')
print(predictions)
django-backups 0.0.2
Django package for backing up databases.
Requires Python: >=3.8

# Django backups

A django backup package for backing up your databases.

## Installation

**NOTE**: Before installing this package, you should have postgresql installed on your machine.

Install through pip

```bash
pip install django-backups
```

In settings.py, add the following line:

```python
BACKUP_DIR = BASE_DIR / "backups_folder"
```

This is where your saved backups will go locally.

Add `backups` to INSTALLED_APPS.

```bash
INSTALLED_APPS = [
    ...

    'backups',
]
```

Add those two lines in settings.py:

```python
from dotenv import load_dotenv
load_dotenv()
```

Add the following lines to `.env` file:
```ini
DO_SPACE_ACCESS_KEY_ID='<key_id>'
DO_SPACE_SECRET_ACCESS_KEY='<secret_access_key>'
DO_SPACE_ENDPOINT_URL='<endpoint_url>'
DO_SPACE_BUCKET_NAME='<bucked_name>'
DO_SPACE_REGION='<s3_region>'
```

Include the urls in your `project/urls.py`:

```python
from django.urls import path, include

urlpatterns = [
    # ...
    path('', include('backups.urls'))
]
```

**NOTE**: Don't worry about `DO_SPACE`, it'll work with S3 in general.

Before running the server, make sure to do `python manage.py migrate`

# Integration with Celery

By default, if you've already installed celery in your project, the tasks will be load to Celery, just make sure it's up and running.

# TODO

- [ ] store credentials for Servers and tables.
- [ ] Actions for:
    1. Servers:
        - Check server connection (even before storing server info).
        - Get server databases and store them
        - Backup all databases.
    2. Databases:
        - Update all tables
        - Backup database.

- [ ] Backup:
    - Upload to S3.
    - Store backup locally on server
    - Download backup file from server.
codenav-python 0.0.2
Python bindings for CodeNav.
Requires Python: >=3.8

# CodeNav Python Bindings

Python bindings for CodeNav.


## Installation

```bash
pip install codenav-python
```


## Quick Start

```python
import codenav
nav = codenav.Navigator(codenav.Language.Python, './test.sqlite')
nav.index(['<YOUR_LOCAL_PATH>/codenav/examples/python'])
reference = codenav.Reference('<YOUR_LOCAL_PATH>/codenav/examples/python/chef.py', 2, 0, 'broil')
definitions = nav.resolve(reference)
for d in definitions:
    print(f'{d.path}:{d.span.start.line}:{d.span.start.column}')
    print(d.text())
nav.clean(True)
```


## Examples

- [Resolve a Python reference](examples/resolve_python_reference.py)
- [Resolve a Python snippet](examples/resolve_python_snippet.py)
- [Resolve a JavaScript reference](examples/resolve_javascript_reference.py)
- [Resolve a JavaScript snippet](examples/resolve_javascript_snippet.py)
- [Resolve a TypeScript reference](examples/resolve_typescript_reference.py)
- [Resolve a TypeScript snippet](examples/resolve_typescript_snippet.py)


## Development

Install [maturin][1]:

```bash
pip install maturin
```

Build and install the module:

```bash
maturin develop
```

Run the examples:

```bash
python examples/resolve_python_reference.py
python examples/resolve_python_snippet.py
python examples/resolve_javascript_reference.py
python examples/resolve_javascript_snippet.py
python examples/resolve_typescript_reference.py
python examples/resolve_typescript_snippet.py
```


[1]: https://www.maturin.rs/
iiris-custom-logger 0.0.7
Generic package which can be used for logging purpose
Requires Python: >=3.6

# Installation Instructions

To install the `common` package and handle custom dependencies, use the following commands:

1. **Install `common` with custom index URL**:

   ```bash
   pip install --extra-index-url https://pypi.iris.informa.com/simple -e .


<!-- pip install -r requirements.txt --extra-index-url https://pypi.iris.informa.com/simple -->

commands

py setup.py sdist bdist_wheel

twine upload dist/*
iiris-cache 0.0.3
Generic package which can be used for caching purpose locally
Requires Python: >=3.6

# Installation Instructions

To install the `common` package and handle custom dependencies, use the following commands:

1. **Install `common` with custom index URL**:

   ```bash
   pip install --extra-index-url https://pypi.iris.informa.com/simple -e .


<!-- pip install -r requirements.txt --extra-index-url https://pypi.iris.informa.com/simple -->