semvec/pypi-packages huggingface dataset:
pop-evbus 7.0.1
Event propagation to configured ingress plugins
Requires Python: >=3.8

=====
EVBUS
=====

An asynchronous message ingress system.
`evbus` is an app-merge component for larger projects.
Events are put on a broker queue.
A listener watches the broker queue and propagates events to configured ingress queues.

INSTALLATION
============

Install from pypi

.. code-block:: bash

    pip install pop-evbus

Install locally with testing libraries:

.. code-block:: bash

    $ git clone git@gitlab.com:vmware/idem/evbus.git
    $ pip install -e evbus -r evbus/requirements/test.in

Firing Events
=============

There are two functions that will put an event into the broker queue; `put` and `put_nowait`
The only difference between them is that `put` is asynchronous and `put_nowait` is synchronous.
Both accept a `routing_key`, `body`, and `profile`.

routing_key
-----------

This option is forwarded to the ingress plugins' `publish` functions.
Some message queues take a routing_key option themselves, some need to open a channel on the message queue
for the named routing_key.  It's up to the ingress plugins to implement this appropriately for the
message queue they wrap.

body
----

The event body is serialized by the evbus broker when it is put on the broker Queue.
The body can be any serializable object.
The serializer can be configured by setting `hub.serialize.PLUGIN` to the name of the plugin that should be used.

profile
-------

Configured profiles are formatted as follows:

.. code-block:: sls

    provider:
      profile_name:
          profile_data:

The `profile` parameter for the broker `put` and `put_nowait` functions specifies which profile_name should
be used for firing an event.
If no profile is specified, the profiles called "default" will be used.
There can be multiple providers with the same profile name,
the event will be forwarded to all providers that have a matching profile name.
A context (ctx) will be generated that will be sent to the appropriate ingress plugin's publish function
based on `profile`.


Full Example
------------

Asynchronous put:

.. code-block:: python

    async def my_func(hub):
        await hub.evbus.broker.put(
            routing_key="channel", body={"message": "event content"}, profile="default"
        )


Synchronous put:

.. code-block:: python

    def my_func(hub):
        hub.evbus.broker.put_nowait(
            routing_key="channel", body={"message": "event content"}, profile="default"
        )
pandalib 0.2.3
A python module to interact with the api of the popular agent pandabuy


# Pandalib

A python module to get informations from the api of the popular agent Pandabuy


## Installation

Install the package using pip

```bash
  pip install pandalib
```
Since Pandabuy requires login for basically every api request you will need your pandabuy bearer token and your userid

### Get your bearer token and user id
You can get your bearer token from the headers of any api request

![Imgur Image](https://i.imgur.com/uBCdo0Q.png)

You can get your user id from the profile info

![Imgur Image](https://i.imgur.com/mdoJsW0.png)


## Usage/Examples

### Get an item info

```python
from pandalib import pandalib, pandautilities

lib = pandalib("my bearer token", "my user id")

item = lib.get_item("https://item.taobao.com/item.htm?id=634959757581")

print(item)
```

### Get your account balance

```python
from pandalib import pandalib, pandautilities

lib = pandalib("my bearer token", "my user id")

balance = lib.get_balance()

print(balance)
```

### Get your account info

```python
from pandalib import pandalib, pandautilities

lib = pandalib("my bearer token", "my user id")

info = lib.get_user_info()

print(info)
```

### Get your account cart

```python
from pandalib import pandalib, pandautilities

lib = pandalib("my bearer token", "my user id")

cart = lib.get_cart()

print(cart)
```

## Pandautilities

You can use pandautilities to estimate the shipping prices and convert cny to usd

### Convert CNY to USD 

```python
from pandalib import pandalib, pandautilities

utilities = pandautilities("my bearer token", "my user id")

usd = utilities.cny_to_usd(230)

print(usd)
```

### Estimate shipping prices

To estimate the shipping prices you can only input the weight or you can also input width, hight, length

```python
from pandalib import pandalib, pandautilities

utilities = pandautilities("my bearer token", "my user id")

shipping_prices = utilities.estimate(weight=1200, length=30, hight=30, width = 30)

print(shipping_prices)
```
python-jwt-fork 1.3.1
JSON Web Token library for Python 3.
Requires Python: >= 3.6

.. image:: https://travis-ci.org/GehirnInc/python-jwt.svg?branch=master
    :target: https://travis-ci.org/GehirnInc/python-jwt
.. image:: https://coveralls.io/repos/GehirnInc/python-jwt/badge.png?branch=master
    :target:  https://coveralls.io/r/GehirnInc/python-jwt?branch=master
.. image:: https://badge.fury.io/py/jwt.svg?dummy
    :target: http://badge.fury.io/py/jwt

python-jwt
==========

*python-jwt* is a JSON Web Token (JWT) implementation in Python developed by `Gehirn Inc`_.


Examples
--------

.. code-block:: python

   import json
   from datetime import datetime, timedelta, timezone

   from jwt import (
       JWT,
       jwk_from_dict,
       jwk_from_pem,
   )
   from jwt.utils import get_int_from_datetime


   instance = JWT()

   message = {
       'iss': 'https://example.com/',
       'sub': 'yosida95',
       'iat': get_int_from_datetime(datetime.now(timezone.utc)),
       'exp': get_int_from_datetime(
           datetime.now(timezone.utc) + timedelta(hours=1)),
   }

   """
   Encode the message to JWT(JWS).
   """

   # Load a RSA key from a JWK dict.
   signing_key = jwk_from_dict({
       'kty': 'RSA',
       'e': 'AQAB',
       'n': '...',
       'd': '...'})
   # Or load a RSA key from a PEM file.
   with open('rsa_private_key.pem', 'rb') as fh:
       signing_key = jwk_from_pem(fh.read())
   # You can also load an octet key in the same manner as the RSA.
   # signing_key = jwk_from_dict({'kty': 'oct', 'k': '...'})

   compact_jws = instance.encode(message, signing_key, alg='RS256')

   """
   Decode the JWT with verifying the signature.
   """

   # Load a public key from PEM file corresponding to the signing private key.
   with open('rsa_public_key.json', 'r') as fh:
       verifying_key = jwk_from_dict(json.load(fh))

   message_received = instance.decode(
       compact_jws, verifying_key, do_time_check=True)

   """
   Successfuly retrieved the `message` from the `compact_jws`
   """
   assert message == message_received


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

You can install python-jwt with pip.

.. code-block:: shell

   $ pip install jwt


Implementation Details
-------------------------

Supported Algorithms
~~~~~~~~~~~~~~~~~~~~

- Unsecured

  - none (disabled by default for security)

- Symmetric

  - HS256
  - HS384
  - HS512

- Asymmetric

  - PS256
  - PS384
  - PS512
  - RS256
  - RS384
  - RS512

Supported Python Versions
~~~~~~~~~~~~~~~~~~~~~~~~~

- Python 3.6+


License
-------
python-jwt is licensed under the Apache License version 2.  See ./LICENSE.rst.


.. _Gehirn Inc: http://www.gehirn.co.jp/
bakasur 1.3.2
Bakasur is your friendly demon that helps you analyse your Thuisbezorgd order history and visualise patterns.
Requires Python: >=3.8.0,<3.13.0

# Bakasur
[![PyPI version](https://badge.fury.io/py/bakasur.svg)](https://badge.fury.io/py/bakasur)
***
[Bakasur](https://github.com/d-kold/bakasur) (_/buh-KAA-soor/_) is your friendly demon who helps you analyse your Thuisbezorgd order history and visualise it. 

![Dashboard](img/dashboard.png)

![Terminal](img/terminal.png)


### Disclaimer
***
This tool requires you to log in using your Thuisbezorgd credentials. Upon correct input, you will recieve 
a email with a verification code from Thuisbezorgd. Once the details are added, `bakasur` will create a `thuisbezorgd_token.json`
file in your current working directory which will store the `authToken` and `refreshToken` received from the login request. 
These tokens will help in authenticating the Thuisbezorgd API in the subsequent runs of this tool. 
If you are concerned about the security of the tokens they are on your local filesystem and you can also review
the code to check that there are no evil intentions here. **Your username and password are not stored.**


### How to use this tool
***
This tool uses a number of packages such as `typer`, `rich`, `datapane`. To avoid any conflicts with your current installed
site-packages, it is preferable to create a virtual environment and then install this tool.

- Create a virtual environment `virtualenv venv` and activate it `source venv/bin/activate`
- Install Bakasur using `pip install bakasur`
- Once it is installed you can now type in `bakasur` in your terminal and get started

### Tool specifics
***
When you first log in to Thuisbezorgd using `bakasur` it creates a sqlite database in your current working directory `thuisbezrgd.db`. 
The database stores all your orders and their details in tables `orders` and `items` respectively. During subsequent runs
of the tool, your most recent orders are inserted into the database 

Requires:
- Python v3.7.1+ 
- Thuisbezorgd account (duh!)

### Contribution
***
Give this tool a try and if you find any bugs or issues with it then feel free to open an issue or start a discussion.
Feature requests, Bug fixes are most welcome.

### License
***
[MIT License](https://github.com/d-kold/bakasur/blob/0d2317c116180b2e33d14e833c25352ff5a8e032/LICENSE.md)

### Important
***
This tool is intended for personal use. A fun hobby project for demo. I am not responsible if you tweak the code and violate 
any Thuisbezorgd Terms and Conditions. 

[d-kold](https://github.com/d-kold)
quasar-unred 0.18
Determine the E(B-V) values of observed quasar spectra
Requires Python: >=3.9

# quasar_unred

Quasar Unred is a Python library for determining the E(B-V) value of observed quasar spectra. It can also be used to appropriately deredden these spectra.

## Installation

pip install quasar_unred

qso_template.txt must be downloaded and in working directory for load_template() to work with no argument.
## Usage

A simple demonstration is shown in quasar_unred_demo.ipynb

It is assumed that qso_template.txt and ukfs1037.p0236.final.dat are both downloaded and in your working directory.

## Dependencies

Dependencies for use are numpy, scipy, astropy, and dust_extinction

## Contributing

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


## License

This project is Copyright (c) John Klawitter and Eilat Glikman and licensed under the terms of the BSD 3-Clause license.