semvec/pypi-packages huggingface dataset:
socketmap-sql 0.2.0
An implementation of the sendmail socketmap protocol to allow an SQL database
Requires Python: >=3.8

=============
socketmap-sql
=============

A socketmap_ script for interfacing with an SQL database.

.. _socketmap: http://www.postfix.org/socketmap_table.5.html

Why?
====

I have a number of FreeBSD_ servers, with one intended to act as my primary
mailserver (the current one and remaining one becoming secondary mailservers).
The problem is that I'm using Postfix_, and trying very hard to stick to
precompiled packages rather than using ports, and Postfix on FreeBSD lacks
bindings to databases. In my case, I wanted to be able to use an SQL database.

.. _FreeBSD: https://www.freebsd.org/
.. _Postfix: http://www.postfix.org/

Configuration format
====================

Configuration files are INI files containing two types of section.

First is the ``[database]`` section, which gives database connection details.
The *driver* field specifies the driver to use; if omitted, its value defaults
to *sqlite3*. The remaining fields are passed to the driver's ``connect()``
function.

::

    [database]
    driver = sqlite3
    database = /path/to/sqlite.db

Other sections start with ``table:``, and denote virtual tables to be queried.
There are two fields: *transform* (optional) and *query* (required).

The *transform* field gives the name of a transformation to apply to the query
parameter before its use in the query the query. The default is to accept the
parameter as-is (*all*). Other values can be a reference to a Python function
in the form 'module:function', *local* for just the local part, *domain* for
the domain part of the address, and *split* breaks an email address in two.
It must return a list or tuple giving the postitional arguments to use in the
query.

The *query* field give an SQL query to be used to generate the synthetic table.
Use placeholders as specified by the database driver's documentation.

Usage
=====

Run with::

    socketmap-sql --config /path/to/config.ini

If you don't provide the *--config* flag, it defaults to
``/etc/socketmap-sql.ini``.

Postfix
=======

This script is intended to be executed by Postfix's spawn_ mechanism, meaning
it reads its input and writes its output to stdin and stdout respectively.

.. _spawn: http://www.postfix.org/spawn.8.html

Assuming you've installed the script in ``/usr/local/libexec``, add the
following to ``master.cf``::

    sockmapd  unix  -      -       n       -       1       spawn
      user=nobody argv=/usr/local/libexec/socketmap-sql

Compatibility
=============

The script only works on Python 3.8+.

.. vim:set ft=rst:
apple-reading-list-to-sqlite 0.2.2
Export Apple Reading List to SQLite
Requires Python: >=3.10,<4.0

# apple-reading-list-to-sqlite

Export Apple Reading List to SQLite

## Install

    $ pip install apple-reading-list-to-sqlite

## Usage

    $ apple-reading-list-to-sqlite --help
      Usage: apple-reading-list-to-sqlite [OPTIONS] [DB_PATH]

      Export Apple Reading List to SQLite

      Arguments:
      [DB_PATH]  Path to the SQLite database file.

      Options:
        --version  Show the version and exit.
        --help     Show this message and exit.
        --fetch-content / --no-fetch-content try and retrive the content of the article
        --dump / --no-dump Dump the reading list to stdout
        --enable-fts / --no-enable-fts Enable full text search

## Testing

Right now, all tests only run on macOS. You can run them with:

    $ pytest

To skip the tests that require macOS, use:

    $ pytest -m "not macos"

## Contributing

Contributions are welcome! Fork the repo, make a branch, and submit a PR.

## Thanks


   [Apple News to sqlite] (https://github.com/RhetTbull/apple-news-to-sqlite)

   [sqlite-utils] (https://github.com/simonw/sqlite-utils)

   [Reading List Extract] (https://gist.github.com/keith/4b4a2e1b0b9b1b0d0e0a)

## License

MIT License
search-algos 0.0.4
A collection of searching algorithms for lists and dictionaries

## search-algos

search-algos is a Python package that includes various searching algorithms for lists and python dictionaries. The package is designed to be easy to use and can be integrated into any Python project that requires optimized searching functionality.

Searching Algos:
- Linear Search
- Binary Search
- Exponential Search
- Fibonacci Search
- Interpolation Search
- Jump Search
- Ternary Search

### Installation

You can install search-algos using pip:

```
pip install search-algos
```

### Usage

To use the searching algorithms in search-algos, you first need to import the package:

```
from search_algos import linear_search, binary_search

lst = [1, 2, 3, 4, 5]
item = 3

print(linear_search(lst, item))  # Output: 2
print(binary_search(lst, item))  # Output: 2
```


### Contributing

If you would like to contribute to search-algos, you can fork the repository and submit a pull request. We welcome contributions of all kinds, including bug reports, feature requests, and code contributions.

### License

search-algos is licensed under the MIT License. See the LICENSE file for more information.
tmpecondata 1.0
Extracción de series de tiempo de las cinco principales instituciones económicas para el Perú
Requires Python: >=3.6

# Econdata
Extracción de series de tiempo de las principales instituciones económicas para el Perú:
1. Banco Central de Reserva del Perú (BCRP)
2. Yahoo Finance
3. Federal Reserve Economic Data (FRED)
4. World Bank
5. Organización para la Cooperación y el Desarrollo Económicos (OCDE)

```
# Instalación mediante PyPI
!pip install econdata==1.0

# o simplemente:
!pip install econdata
```



## Versión 1.0
* Para el `BCRP`, `Yahoo Finance`, `FRED` y el `World Bank`, se cuenta con ambos métodos: `get_data()` y `search()`.
* Para la `OCDE`, se cuenta únicamente con el método `get_data()`.


## Métodos
Para cada institución se tiene dos métodos comunes. El primero sirve para extraer las series dado un rango de peridos:
```
get_data()
```

La segunda sirve para conseguir la metadata, principalmente, los códigos de las series:
```
search()
```
El resultado incluye los nombres, códigos y fechas que servirán como complemento con la función anterior: `get_data()`.


## Test !
El código guía para usar las funciones está disponible [aquí](https://github.com/mauricioalvaradoo/econdata/blob/master/test.py).


## Créditos
* [Mauricio Alvarado](https://github.com/mauricioalvaradoo)
* [Andrei Romero](https://github.com/Ixtalia)
tmp-econdata 1.1
Extracción de series de tiempo de las cinco principales instituciones económicas para el Perú
Requires Python: >=3.6

# Econdata
Extracción de series de tiempo de las principales instituciones económicas para el Perú:
1. Banco Central de Reserva del Perú (BCRP)
2. Yahoo Finance
3. Federal Reserve Economic Data (FRED)
4. World Bank
5. Organización para la Cooperación y el Desarrollo Económicos (OCDE)

```
# Instalación mediante PyPI
!pip install econdata==1.0

# o simplemente:
!pip install econdata
```



## Versión 1.0
* Para el `BCRP`, `Yahoo Finance`, `FRED` y el `World Bank`, se cuenta con ambos métodos: `get_data()` y `search()`.
* Para la `OCDE`, se cuenta únicamente con el método `get_data()`.


## Métodos
Para cada institución se tiene dos métodos comunes. El primero sirve para extraer las series dado un rango de peridos:
```
get_data()
```

La segunda sirve para conseguir la metadata, principalmente, los códigos de las series:
```
search()
```
El resultado incluye los nombres, códigos y fechas que servirán como complemento con la función anterior: `get_data()`.


## Test !
El código guía para usar las funciones está disponible [aquí](https://github.com/mauricioalvaradoo/econdata/blob/master/test.py).


## Créditos
* [Mauricio Alvarado](https://github.com/mauricioalvaradoo)
* [Andrei Romero](https://github.com/Ixtalia)
py3status-reddit 1.0.1
py3status module showing reddit unread messages
Requires Python: >=3.6.2,<4.0.0

# py3status-reddit

A py3status module showing reddit unread messages.

## install

```
pip install py3status-reddit
```

## configuration

* `format`: output format (default `reddit: {count}`)
* `cache_timeout`: how often to refresh the information

A fancier format could be achieved using Font Awesome:

```
format = '\?if=!count=0 <span color="#FF5700" font_family="FontAwesome">\uf281 <span font_weight="heavy">{count}</span></span>|'
```

![](fancy_count.png)

## first time launch

The first time you launch this module, you will have to
authorize it via an OAuth flow you can start by clicking on it.
skdoc 0.0.1.5
Automated documentation engine for scikit-learn models
Keywords: python,scikit-learn,sklearn,machine learning,documentation

# skdoc
Automated documentation engine for scikit-learn models

```python
import pandas as pd
from skdoc import render_report
```

```python
dataframe = pd.DataFrame({'A': [1, 2, 4, 3], 'B': [3, 5, 9, 4]})
```

```python
render_report(dataframe)
```