semvec/pypi-packages huggingface dataset:
sqlalchemy-sybase 2.0.0
SAP ASE (Sybase) for SQLAlchemy
License: MIT
Keywords: ASE SAP SQLAlchemy Sybase

sqlalchemy-sybase
=================

.. image:: https://img.shields.io/pypi/dm/sqlalchemy-sybase.svg
        :target: https://pypi.org/project/sqlalchemy-sybase/

SAP ASE (Sybase) dialect for SQLAlchemy.

The latest version of this dialect requires SQLAlchemy 2.0 or later. To work with earlier versions of SQLAlchemy, do::

    pip install sqlalchemy-sybase<2.0.0

Overview
--------

This is a fork of SQLAlchemy's internal "sybase" dialect
which was deprecated in SQLAlchemy 1.4 and was removed from
SQLAlchemy 2.0.

Database Version Support
------------------------

This dialect is tested against SAP ASE version 16. Some features may not work
on earlier versions of SAP ASE.

Pre-requisites
--------------

You will need an ODBC driver for SAP ASE installed on the machine from which
you want to connect to the SAP ASE server. This dialect is tested with
the SAP ASE ODBC driver (``libsybdrvodb-sqllen8.so`` on Linux).

Also, if you are running on Linux and using `unixODBC`_, check the version via
``odbcinst -j`` from a console prompt (or use the `odbcinst`_ module).
The official repositories of several Linux distributions
contain versions of unixODBC that are quite old and somewhat buggy.

.. _unixODBC: http://www.unixodbc.org/
.. _odbcinst: https://github.com/gordthompson/odbcinst

Installing
----------

SQLAlchemy and pyodbc are specified as requirements so ``pip`` will install
them if they are not already in place. To install, just::

    pip install sqlalchemy-sybase

Getting Started
---------------

Create an `ODBC DSN (Data Source Name)`_ that points to your SAP ASE database.
Then, in your Python app, you can connect to the database via::

    from sqlalchemy import create_engine
    engine = create_engine("sybase+pyodbc://scott:tiger@your_dsn")

For other ways of connecting see the `Getting Connected`_ page in the Wiki.

.. _ODBC DSN (Data Source Name): https://support.microsoft.com/en-ca/help/966849/what-is-a-dsn-data-source-name
.. _Getting Connected: https://github.com/gordthompson/sqlalchemy-sybase/wiki/Getting-Connected

The SQLAlchemy Project
======================

sqlalchemy-sybase is affiliated with the `SQLAlchemy Project <https://www.sqlalchemy.org>`_ and
adheres to the same standards and conventions as the core project.

Development / Bug reporting / Pull requests
-------------------------------------------

Please refer to the
`SQLAlchemy Community Guide <https://www.sqlalchemy.org/develop.html>`_ for
guidelines on coding and participating in this project.

Code of Conduct
_______________

Above all, SQLAlchemy places great emphasis on polite, thoughtful, and
constructive communication between users and developers.
Please see the current Code of Conduct at
`Code of Conduct <https://www.sqlalchemy.org/codeofconduct.html>`_.

License
=======

sqlalchemy-sybase is distributed under the `MIT license
<https://opensource.org/licenses/MIT>`_.
tile-tools 0.1.2
A collection of tools for navigating Mapbox tiles.
License: MIT
Requires Python: >=3.10,<3.12

# Tile Tools

[![Python Tests](https://github.com/biglocalnews/tile-tools/actions/workflows/pytest.yaml/badge.svg)](https://github.com/biglocalnews/tile-tools/actions/workflows/pytest.yaml)
[![Python Lint](https://github.com/biglocalnews/tile-tools/actions/workflows/pylint.yaml/badge.svg)](https://github.com/biglocalnews/tile-tools/actions/workflows/pylint.yaml)

Collection of tools useful for navigating Mapbox (and similar) tiles.

Most of these tools were written by Mapbox in JavaScript. I've ported them into Python with minimal modification.


## Contents

### `tilebelt`

Utility functions for working with tiles.

This is a complete Python port of Mapbox's [@mapbox/tilebelt](https://github.com/mapbox/tilebelt/).

There are some minor differences in the API.
See the [submodule readme](tile_tools/tilebelt/README.md) for more details.

### `cover`

Given a GeoJSON Geometry and a zoom level, generate the minimal set of Mapbox `(x, y, zoom)` tiles that cover this geometry.

This is a re-implementation of Mapbox's [`@mapbox/tile-cover`](https://github.com/mapbox/tile-cover/).
The implementation started out as a port, however the originally library is not passing all of its own tests.
The API has been re-implemented here with a slightly different approach, and all of the equivalent tests are now passing.

See [submodule readme](tile_tools/cover/README.md) for details.

### `coords`

#### `coords.tilecoords2lnglat`

Transform Mapbox's relative tile `(x, y)` coordinates into longitude/latitude degrees.


### `distance`

#### `distance.haversine`

Compute the distance between two points on the globe using the haversine formula.

## Rendering

For debugging and general interest, the cover algorithm can be visualized with the `scripts/render.py` script.

It requires that `gdal` and `ImageMagick` are installed. Then, run:
```zsh
poetry install --with render
```

An example usage is rendering the `degenring` test fixture at zooms 1-14.
The output will be stored as a GIF in `render.gif`.

```zsh
cat tests/fixtures/degenring.geojson | poetry run python scripts/render.py --zmin 1 --zmax 13 --out render.gif
```

## Development

Set up the environment with `poetry`:

```zsh
poetry install --with dev
poetry run pre-commit install
```

### Tests

```zsh
poetry run pytest
```
presentable 1.0.0
Providing a Prettier Confusion Matrix for your Command Line
License: MIT

<h1 align="center">presentable</h1> 
<h3 align="center">Providing a Prettier Confusion Matrix for your Command Line</h3>

<p align="center">  
  <img alt="presentablelogo" src="https://github.com/JacksonBurns/presentable/blob/main/presentable_logo.png">
</p> 
<p align="center">
  <img alt="GitHub Repo Stars" src="https://img.shields.io/github/stars/JacksonBurns/presentable?style=social">
  <img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/presentable">
  <img alt="PyPI" src="https://img.shields.io/pypi/v/presentable">
  <img alt="PyPI - License" src="https://img.shields.io/github/license/JacksonBurns/presentable">
</p>

## Installation
`presentable` is available on PyPI. Install it with `pip install presentable`.

## Usage
`presentable` is a drop in replacement from `sklearn.metrics.confusion_matrix` that just includes some nice formatting and only ever prints to the terminal, helpful on remote hardware accessible only from the CLI.

```python
>>> confusion_matrix(gtr, pred, tabulate_args={"tablefmt":"github","floatfmt":".2f"},sklearn_args={"normalize":"all"})
| Truth\Model   |   cat |   dog |
|---------------|-------|-------|
| cat           |  0.17 |  0.17 |
| dog           |  0.33 |  0.33 |
```

`tabulate_args` and `sklearn_args` are optional dictionaries to specify additional configurations arguments for `tabulate` and sklearn's `confusion_matrix`. Check the [`tabulate` documentation](https://github.com/astanin/python-tabulate#table-format) and [`sklearn` documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.confusion_matrix.html) for a list of which args are supported.

## Online Documentation
[Click here to read the documentation](https://JacksonBurns.github.io/presentable/)