semvec/pypi-packages huggingface dataset:
kattention 0.1.2
Package implementing different attention mechanisms as tf.keras layers
Requires Python: >=3.6

# Kattention

This package implements different Attention mechanisms as Keras layers.

## Setup

```
pip install kattention
```

## Usage

```
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Flatten, Dense, Softmax
from kattention.layers import Transformer 

SEQUENCE_LENGTH = 4
EMBEDDING_SIZE = 300
CLASSES_TO_PREDICT = 5
ATT_HEADS = 2

model = Sequential()
model.add(Transformer(attention_heads=ATT_HEADS, input_shape=(SEQUENCE_LENGTH, EMBEDDING_SIZE)))
model.add(Transformer(attention_heads=ATT_HEADS))
model.add(Flatten())
model.add(Dense(CLASSES_TO_PREDICT))
model.add(Softmax())

print(model.summary())
```
euroleague-scrapping 0.0.1.dev21
Euroleague and Eurocup scrapping
Requires Python: >=3.6

Euroleague and Eurocup Scrapper
-------------------------------

Welcome to `newstats.eu <https://newstats.eu>`_ **Euroleague
and Eurocup scrapper**\ !

This is a simple project to help you download basketball data from
`euroleague <https://www.euroleague.net>`_ and `eurocup <https://www.eurocupbasketball.com>`_

You need to have **python>=3.6** installed in order to use the library.

Installation and usage
----------------------

Install it using:

.. code-block::

   pip install euroleague_scrapping

If you want to download Euroleague data for season 2019-2020 try:

.. code-block::

   scrapper = Euroscrapper(years=[2019])
   scrapper.start()

It will create a ``data/euroleague`` folder in your current path.
If you prefer a different path to store the data (lets say ``/tmp/data``\ ), try:

.. code-block::

   scrapper = Euroscrapper(datadir="/tmp/data",years=[2019])
   scrapper.start()

If you want to download Eurocup data for season 2019-2020 try:

.. code-block::

   scrapper = Euroscrapper(league="eurocup",years=[2019])
   scrapper.start()

If you want to download Euroleague data for all the seasons try (it will take a while): 

.. code-block::

   scrapper = Euroscrapper()
   scrapper.start()

If you want to download Euroleague data for the last 3 seasons try:

.. code-block::

   scrapper = Euroscrapper(years=[2017,2018,2019])
   scrapper.start()

Hopefully you can adopt the calls to fit your needs.

If you enjoyed the library and found it useful give us a shout in
Twitter `@newstatseu <twitter.com/newstatseu>`_
polyjuice 0.1.0
SQLAlchemy tables disguised as Django models.
Requires Python: >=3.6,<4.0
Keywords: Django,SQLAlchemy

# Polyjuice ⚗️��‍♂️

SQLAlchemy tables disguised as Django models.

[![Build Status](https://api.travis-ci.org/ducdetronquito/polyjuice.svg?branch=master)](https://travis-ci.org/ducdetronquito/polyjuice) [![License](https://img.shields.io/badge/license-public%20domain-ff69b4.svg)](https://github.com/ducdetronquito/polyjuice#license)


## Usage

*Polyjuice* allows you to define your database tables with [SQLAlchemy Core](https://docs.sqlalchemy.org/en/13/core/) and use them
as legit Django models.

You could find *Polyjuice* relevant in situations where you want manage your table without the Django constraints, but still
take advantage of all the goodness of Django integration and tooling when needed.

I haven't tried every use case yet, but I imagine it could suits many:

- Use other database management tools (ex: migrations with [alembic](https://github.com/sqlalchemy/alembic))
- Take advantage of the async world (ex: build RabbitMQ consummers with [aio-pika](https://github.com/mosquito/aio-pika))
- Build complex SQL queries with the SQLAlchemy API and execute them through the Django database connection
- Transition to another web framework
- ¯\\_(ツ)_/¯


### Example

**In an python package called `my_tables.py`**

```python
"""Here, define your table schemas with the SQLAlchemy core API."""
import polyjuice
from sqlalchemy import Column, ForeignKey, Integer, MetaData, String, Table

metadata = MetaData()


ProfessorTable = Table(
    "hogwarts__professor",
    metadata,
    Column("id", Integer, primary_key=True),
    Column("name", String(30), nullable=False)
)


PotionTable = Table(
    'hogwarts__potion',
    metadata,
    Column("id", Integer, primary_key=True),
    Column("name", String(100), nullable=False),
    Column(
        'made_by',
        Integer,
        ForeignKey(ProfessorTable.c.id),
        django_on_delete="CASCADE",
        django_related_name="personal_potions"
    )
)
```

**In your Django project**

```python
from my_tables import PotionTable, ProfessorTable
import polyjuice


@polyjuice.mimic(ProfessorTable)
class Professor:
    """The Polyjuice decorator will turn this class into a legit Django model."""

    def welcome(self):
        print(f"Welcome to my class, I am Pr. {self.name} ��‍♂️")


@polyjuice.mimic(PotionTable)
class Potion:
    """This class too"""

    def boil(self):
        print(f"*The {self.name} potion is blurping* ⚗️")


# And you are ready to go !
severus_snape = Professor.objects.create(name="Severus Snape")
veritaserum = Professor.objects.create(name="Veritaserum", made_by=severus_snape)

assert severus_snape.personal_potions.count() == 1
```


## Requirements

*Polyjuice* is currently built on top of SQLAlchemy 1.3 and Django 2.2, and requires Python 3.6.


## License

*Polyjuice* is released into the Public Domain. ����
linkcutter 0.0.1a2
Make link shorter using cutt.ly API
Requires Python: >=3.8

# Link cutter (via cutt.ly API)

> Make your link shorter!   

**requires Redis server on the local machine! (read more below)**

![PyPI](https://img.shields.io/pypi/v/linkcutter)
![GitHub issues](https://img.shields.io/github/issues/h3xi/linkcutter-py)
[![Maintainability](https://api.codeclimate.com/v1/badges/b3fa7b2cc0bde4d9306b/maintainability)](https://codeclimate.com/github/h3xi/linkcutter-py/maintainability)
![GitHub](https://img.shields.io/github/license/h3xi/linkcutter-py)

`linkcutter` shortens links using services [Cutt.ly API](https://cutt.ly/cuttly-api)

Search parameters:

- *link* - original link (`http://example.com`)
- *key* - API service key from cutt.ly (`8c20a834fa0982f435f85d937a9628da47e8f`)

Returned attributes for each link:

- *status* - status code (`7`)
- *fullLink* - original link (`http://example.com`)
- *date* - date of shortening the link (`18.07.2020`)
- *shortLink* - shortened link (`https://cutt.ly/Pah5izz`)
- *title* - website title (`Example Domain`)

## Installation

```sh
pip3 install linkcutter
```

## Usage

```python
>>> import linkcutter
>>> link = linkcutter.get_link("http://example.com")
>>> link.status
7
>>> link.title
'Example Domain'
>>> link.shortLink
'https://cutt.ly/Pah5izz'
```

## Redis server use!
**This packet requires launched Redis server!**
This is necessary to remember all the links that you shortened using this package. They can be obtained via `redis-cli` using a short link as a key (via `get`).

```sh
> get https://cutt.ly/Pah5izz
"http://example.com"
```

This function hasn't been finalized, I will try to finish it as soon as possible.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

[MIT](https://choosealicense.com/licenses/mit/)