semvec/pypi-packages huggingface dataset:
plurk-dice 0.0.3
A third-party Python API of Plurk Dice Emojis
Requires Python: >=3.7

# Plurk Dice

## Install

```bash
pip install plurk-dice
```

## Usage

```python
>>> from plurk_dice import Dice

# Roll a dice directly

>>> Dice(20).roll()
{'result': 7, 'url': 'https://s.plurk.com/ff94b39b3f0927042f8479fac0fd92d1.png'}

>>> Dice("bzz").roll(base64=True)
{'result': 'B', 'url': 'https://s.plurk.com/e3481a0219283c49455d8af6012980ea.png', 'base64': 'iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARxJREFUeNqs1bFLAmEYx/H3Ui6c2sR0jByV3EWE2gMRkyJpcDOXBsF2JynrDwhqUf8MHaWWtKWtocBwDhzCvhePcYOHd+/bC5/hOR5+vHfv3XOWrb6V5krgEEOMlxc3lP6KoYEbpP8jMIU48riTWjswigpCUmdwiz3dwCpyrnqOJLJhjbB91Fz1APeY4CNo4A5aciCf6Mjzm/51OK+NT1voYYERDlb1+Q0L4VrC+tj16vUTZuESX7iSnSqTwDpmaMJe178u7AxvOJedKpPAE7ygEuDgPANLeEI5SJhX4BEeUQwatirQuc1nnZ0tOV/KJiIooI42urojKCyz7BinuMCDwUj7HV/veJUPvK8MlyW/AGdQbsvEmJsE/ggwAMem4bIle0IVAAAAAElFTkSuQmCC'}

# Roll dices parse from text

>>> Dice.parse("(dice20)(dice8)")
[{'result': 2, 'url': 'https://s.plurk.com/27866de1cbed77d98cd8a886205c9dcb.png'}, {'result': 6, 'url': 'https://s.plurk.com/17c9123ed084f917ede14447afdfabdf.png'}]
>>> Dice.parse("(dice20)(dice8)", base64=True)
...
```

## Support emojis

- [x] ![dice4](https://s.plurk.com/a1fe8924e7dc4a4252b8e2c89fc729a4.png)
- [x] ![dice](https://s.plurk.com/7c9a7af9caf0bcbadc74ec87400eb66d.png)
- [ ] ~~(dice2)~~
- [x] ![dice8](https://s.plurk.com/7b990c34dc8f63d90a06a67b8eaf56aa.png)
- [x] ![digit](https://s.plurk.com/58d382c8ac312fb1471fc9ea586a961b.png)
- [x] ![dice10](https://s.plurk.com/001b8fae9b328c7d36a9e7f69d8fa922.png)
- [x] ![dice12](https://s.plurk.com/4694141aad1682240b2d3718beeccf67.png)
- [x] ![dice20](https://s.plurk.com/22ecc6bed8b99c6a111d5dbc65dc08fd.png)
- [x] ![bzz](https://s.plurk.com/129b757f2346a6e5ea782c79f0337ba9.png)
- [x] ![lots](https://s.plurk.com/469ccf8828b6eb697bbc55b35ed84202.png)

## Run tests

```bash
python -m unittest
```
libraw-cffi 0.19.0
CFFI bindings for LibRaw

===========
libraw-cffi
===========

|PyPI| |Pythons| |CI| |Codecov|

.. |PyPI| image:: https://img.shields.io/pypi/v/libraw-cffi.svg
  :alt: PyPI version
  :target: https://pypi.org/project/libraw-cffi/

.. |Pythons| image:: https://img.shields.io/pypi/pyversions/libraw-cffi.svg
  :alt: Supported Python versions
  :target: https://pypi.org/project/libraw-cffi/

.. |CI| image:: https://github.com/Julian/libraw-cffi/workflows/CI/badge.svg
  :alt: Build status
  :target: https://github.com/Julian/libraw-cffi/actions?query=workflow%3ACI

.. |Codecov| image:: https://codecov.io/gh/Julian/libraw-cffi/branch/master/graph/badge.svg
  :alt: Codecov Code coverage
  :target: https://codecov.io/gh/Julian/libraw-cffi

CFFI bindings for `LibRaw <https://www.libraw.org/docs/API-C.html>`_.
ofxstatement-be-belfius 0.0.2
Belfius bank plugin for ofxstatement (Belgium)
Keywords: ofx,banking,statement

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Belfius plugin for ofxstatement
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This project provides  an `ofxstatement`_ plugin for converting the Belgian Belfius bank's CSV format statements to OFX.

`ofxstatement`_ is a tool to convert proprietary bank statement to OFX format,
suitable for importing to GnuCash. Plugin for ofxstatement parses a
particular proprietary bank statement format and produces common data
structure, that is then formatted into an OFX file.

.. _ofxstatement: https://github.com/kedder/ofxstatement


Users of ofxstatement have developed several plugins for their banks. They are
listed on main `ofxstatement`_ site. If your bank is missing, you can develop
your own plugin.

To convert proprietary ``belfius.csv`` to OFX ``belfius.ofx``, run::

    $ ofxstatement convert -t belfius belfius.csv belfius.ofx
django-firebase-custom-auth 0.1
Django backend for Firebase custom authentication.
Requires Python: >=3.6

# Django Firebase Custom Auth

Django backend for Firebase custom authentication.

## Requirements
- Django 3
- Python 3

## Setup
Install dependencies.
```
pip install djangorestframework firebase-admin
```
Install this package.
```
pip install django-firebase-custom-auth
```
Add `django_firebase_custom_auth` to your `INSTALLED_APPS` in your `settings.py`.
```
INSTALLED_APPS = (
    ...,
    'rest_framework',
    ...,
    'django_firebase_custom_auth',
)
```
Add URL patterns.
```
urlpatterns = [
    path('custom-auth/', include('django_firebase_custom_auth.urls')),
]
```
Specify a file path service account info is stored.
```
SERVICE_ACCOUNT_KEY_FILE_PATH = os.path.join(BASE_DIR, 'serviceAccountKey.json')
```
(Optional) Provide a key to generate a custom token. The default value is `id`.
Make sure this value is a primary key your user model has.
```
CUSTOM_TOKEN_KEY = 'uuid'
```
Now you can send a user's credentials (username and password) from your Firebase client app to Django backend. And your server will return a custom token if the credentials are valid. And you can sign in with Firebase using the token. Below is an example in JavaScript.
```
const url = "http://127.0.0.1:8000/custom-auth/login/"
const credentials = {
	username: username,
	password: password,
}

axios.post(url, credentials).then((resp) => {
	const token = resp.data.token

	firebase.auth().signInWithCustomToken(token)
		.then(() => {
			// Sign in with Firebase
		})
		.catch((err) => {
			// Handle an error
		})
})
```

## Use Case
Let's say your users will be added by admin manually and you want to authenticate users without email.
Since Firebase built-in authentication requires email and password, you need a server that provides a custom token to authenticate users with Firebase. This package can handle the custom authentication. 
For more details, see these resources below.  
  
- [Authenticate with Firebase in JavaScript Using a Custom Authentication System](https://firebase.google.com/docs/auth/web/custom-auth)  
- [How do I create users without email in firebase?](https://stackoverflow.com/questions/52349032/how-do-i-create-users-without-email-in-firebase)