semvec/pypi-packages huggingface dataset:
rgeocoder 0.1.6
A lightweight offline reverse geocoder implemented in Rust.
License: MIT
Requires Python: >=3.7
Keywords: reverse-geocoder,reverse-geocoding,geocoder,maturin,pyo3

rgeocoder
=========

|badgepypi| |badgedocs| 

.. |badgepypi| image:: https://img.shields.io/pypi/v/rgeocoder.svg
        :target: https://pypi.python.org/pypi/rgeocoder
        :alt: PyPI version

.. |badgedocs| image:: https://img.shields.io/badge/docs-latest-blue
        :target: https://phil-v.github.io/rgeocoder/
        :alt: Documentation

A lightweight offline reverse geocoder implemented in Rust with
`pyo3 <https://github.com/PyO3/pyo3>`_ Python bindings.


Basic usage
-----------

.. code-block:: sh

    pip install rgeocoder

.. code-block:: python

    >>> from rgeocoder import ReverseGeocoder
    >>> rg = ReverseGeocoder()
    >>> r = rg.nearest(41.891929, 12.511331)  # lat, lon
    >>> print(r.name, r.cc)
    'Rome IT'
    >>> print(r.lat, r.lon)
    41.89193 12.51133

Some locations include the first-
and second-level administrative divisions:

.. code-block:: python

    >>> print(r.admin1)
    'Latium'
    >>> print(r.admin2)
    'Citta metropolitana di Roma Capitale'

See `<http://download.geonames.org/export/dump/readme.txt>`_ for more
information on the dataset.


License
-------

`MIT License`_

.. _MIT License: LICENSE


Credits
-------

Rust implementation of the algorithm originally based on code from
`llambda/rust-reverse-geocoder <https://github.com/llambda/rust-reverse-geocoder>`_.

Inspired by and meant to act as an alternative to
`thampiman/reverse-geocoder <https://github.com/thampiman/reverse-geocoder>`_.
pyrocatto-bot 4.1.0.post1
A multiclient bot that leverages pyrogram's smart plugins system.
License: MIT
Requires Python: >=3.11,<4.0

# pyrocatto bot
> A multiclient bot that leverages pyrogram's smart plugins system.
<br />

# Installation
### With optional speedups (Installs packages like TgCrypto for Pyrogram):
- `pip install pyrocatto_bot[speedups]`
### Without optional speedups:
- `pip install pyrocatto_bot`
<br />

# Usage:
> after setting up sessions and writing the configuration
### Make sure to be in the directory the plugins are located in!
- `python -m pyrocatto_bot --session-dir <session_dir> --config <config_file>`
### For debugging:
- `python -m pyrocatto_bot --session-dir <session_dir> --config <config_file> --debug`
<br />

# Setting up sessions to use in configs:
### For User account:
- `python -m pyrocatto_sg create-user-session --session-dir <session_dir>`
### For Bot account:
- `python -m pyrocatto_sg create-bot-session --session-dir <session_dir>`
<br />

# Example configuration:
```
user: &user
  plugins:
    root: 'plugins.user_plugins'
    include: Null
    exclude: Null

  addons:
    wheel_userids:
      - 1698923450

sessions: # name: {options}
  cattobot: {<<: *user}
```
<br />

### Your own client sets:
```
#custom: &custom
  <<: *default # This line ensures non recursive inheritance from default client set
  plugins:
    root:
      - 'plugins.extra_plugins'
    include:
      - 'extra_plugin'
    exclude:
      - 'unwanted'

  addons:
    wheel_userids:
      - 12312421
      - 25235423
      - 21424111
      - ...

sessions:
  something: {<<: *custom}
```
<br />

### A single value to modify:
```
extra_plugins: &extra_plugins
  root: 'extra_plugins'

sessions:
  something: {<<: *default, *extra_plugins}
  anotherthing: {<<: *default, plugins: {root: 'extra_plugins'}}
```
pyrocatto-sg 0.2.0.post1
pyrocatto session generator
License: MIT
Requires Python: >=3.11,<4.0

# pyrocatto session generator
<br />

# Installation
### With optional speedups (Installs packages like TgCrypto for Pyrogram):
- `pip install pyrocatto_sg[speedups]`
### Without optional speedups:
- `pip install pyrocatto_sg`
<br />

# Setting up sessions:
### For User account:
- `python -m pyrocatto_sg create-user-session --session-dir <session_dir>`
### For Bot account:
- `python -m pyrocatto_sg create-bot-session --session-dir <session_dir>`