semvec/pypi-packages huggingface dataset:
gputils 1.0.6
Variety of utilities that may come handy in diverse projects.

============================================================
General Python Utils (or Guiem's Python Utils :trollface:)
============================================================

.. image:: https://coveralls.io/repos/github/guiem/gputils/badge.svg?branch=master
    :target: https://coveralls.io/github/guiem/gputils?branch=master

**gputils** is a library that contains a variety of utilities that may come handy in diverse projects.

Installation
------------

:code:`pip install gputils`

Index of utilities
------------------
- :code:`dyn_mean`: computes the mean based on a previous mean plus a new value. Useful when mean is built incrementally, it saves the usage of huge arrays.
- :code:`dyn_stdev`: computes the stdev based on a previous stdev plus a new value.
- :code:`cosine_similarity`: computes the cosine similarity between two vectors or matrix and vector.
faxir-api 0.2
FAX.IR REST API
Keywords: faxir,fax.ir,atrisa

This is the fax.ir API v2 developed for third party developers and organizations. In order to have a better coding experience with this API, let&#39;s quickly go through some points:&lt;br /&gt;&lt;br /&gt; - This API assumes **/accounts** as an entry point with the base url of **https://api.fax.ir/v2**. &lt;br /&gt;&lt;br /&gt; - This API treats all date and times sent to it in requests as **UTC**. Also, all dates and times returned in responses are in **UTC**&lt;br /&gt;&lt;br /&gt; - Once you have an access_token, you can easily send a request to the resource server with the base url of **https://api.fax.ir/v2** to access your permitted resources. As an example to get the user&#39;s profile info you would send a request to **https://api.fax.ir/v2/accounts/self** when **Authorization** header is set to \&quot;Bearer YOUR_ACCESS_TOKEN\&quot; and custom header of **x-fax-clientid** is set to YOUR_CLIENT_ID  # noqa: E501
lambdagram 0.9.4
telegram bot wrapper with webhook for aws lambda
Requires Python: >=3
Keywords: telegram,aws,lambda

# lambdagram

lambdagram is the library to help who want to create telegram bot with [official telegram bot api](https://core.telegram.org/bots/api) using webhook on AWS lambda.

## Introduction

Main target of this library is who want to create telegram bot using webhook simply and easily. Especially for AWS lambda platform. Because AWS lambda do not allow to use polling mechanism for infinite loops. Just sending and receiving message through webhook. Not a big deal. But I believe this pretty helpful for someone who telegram and AWS lambda newbies.

## Installing

~~~
pip install lamdbgram
~~~  

## Telegram API support

- getMe
- setWebhook
- getWebhookInfo
- deleteWebhook

## Key function the lambdagram support

- send_message(self, event, msg, options...) - Efficient way, but you must set webhook before use this method using web browser.
  (https://api.telegram.org/bot{TOKEN}/setWebhook?url={WEBHOOKURL}, remove '{' and '}')
- send_message(self, event, msg, webhook_url, options...) - Inefficient way, but it's useful for beginners.

## How to use

~~~
from lambdagram.bot import Bot


TOKEN = "THE TOKEN YOU GOT FROM @BotFather"

def lambda_handler(event, context): # Basic function signature on AWS lambda 

    bot = Bot(TOKEN)
    bot.send_message(event, "THE MESSAGE YOU WANT TO SEND")
~~~

or

~~~
from lambdagram.bot import Bot


WEBHOOK = "https://YOUR-WEBHOOK-URL"
TOKEN = "THE TOKEN YOU GOT FROM @BotFather"

def lambda_handler(event, context): # Basic function signature on AWS lambda 

    bot = Bot(TOKEN)
    bot.send_message(event, "THE MESSAGE YOU WANT TO SEND", WEBHOOK)
~~~