semvec/pypi-packages huggingface dataset:
django-auth0-auth 3.3
Authenticated users using Auth0.

Django Auth0 Auth
=================

*Django Auth0 Auth* allows you to authenticate through Auth0.

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

Run ``pip install django-auth0-auth``

Add the ``Auth0Backend`` to your ``AUTHENTICATION_BACKENDS`` setting:

.. code:: python

   AUTHENTICATION_BACKENDS = (
       ...
       'auth0_auth.backends.Auth0Backend',
   )

Edit your ``urls.py`` to include:

.. code:: python

   urlpatterns = [
       url(r'^auth0/', include('auth0_auth.urls')),
       ...
   ]

Settings
--------

###AUTH0_DOMAIN

Auth0 domain.

###AUTH0_CLIENT_ID

Auth0 client id.

###AUTH0_CLIENT_SECRET

Auth0 client secret.

###AUTH0_SECRET_BASE64_ENCODED

**default:** ``False`` Flag if Auth0 client secret is base64 encoded.

###AUTH0_SCOPE

**default:** ``'openid email'`` OAuth scope parameter.

###AUTH0_RESPONSE_TYPE

**default:** ``'token'`` OAuth response type parameter.

###AUTH0_USER_CREATION

**default:** ``True`` Allow creation of new users after successful
authentication.

Lock Signin
-----------

To log in using the JavaScript based **Lock** dialog, add the following
to your project.

Add the ``auth0`` context processor to the ``TEMPLATES`` options.

.. code:: python

   TEMPLATES = [
       {
           'BACKEND': 'django.template.backends.django.DjangoTemplates',
           'DIRS': [os.path.join(BASE_DIR, 'templates')],
           'OPTIONS': {
               'context_processors': [
                   ...
                   'auth0_auth.context_processors.auth0',
               ],
           },
       },
   ]

Add the following JavaScript snippet to your ``base.html`` below your
sites other JavaScript.

::

   <script src="https://cdn.auth0.com/js/lock-9.min.js"></script>
   <script type="text/javascript">
       var lock = new Auth0Lock('{{ AUTH0_CLIENT_ID }}', '{{ AUTH0_DOMAIN }}');
       function signin() {
           lock.show({
               callbackURL: '{{ AUTH0_CALLBACK_URL }}',
               responseType: 'token',
               authParams: {
                   'scope': '{{ AUTH0_SCOPE }}',
                   'response_mode': 'form_post',
                   'state': '{{ AUTH0_STATE }}'
               }
           });
       }
   </script>

Add a login button to your ``base.html``.

::

   <button onclick="window.signin();">Login</button>

Logging
-------

To enable logging add ``auth0_auth`` to ``LOGGING['loggers']`` options.

.. code:: python

   LOGGING = {
       ...,
       'loggers': {
           ...,
           'auth0_auth': {
               'handlers': ['console'],
               'level': 'DEBUG',
           }
       }
   }
moodle-notifier-pshychozpath 0.0.1
Allows Concordia students to receive email notifications for Moodle
Requires Python: >=3.6

## Pre-requisites:
Make sure you have the following installed: [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git), [python3+](https://www.python.org/downloads/)

## Setting up your environment

### Downloading the repository
To clone the repo run the following in your terminal. 
```bash
git clone https://github.com/volovikariel/moodle-notifier.git
``` 

### Installing the depdencies
Then install all dependencies required to run the script by by running the following in your terminal. 
```bash
python3 -m pip -r requirements.txt
```
NOTE: On Windows, you may have to use `py -3` instead of `python3` 

### Specifying your configuration
Run the following in your terminal to generate a `.env` file (which stores all your configuration).
```bash
python3 moodle_notifier.py
```
Inside the `.env` file, do the following:
1. Put in your portal username (it'll be in the format `concordia.ca\X_XXXXXX`).
2. Put in your portal password.
3. Put in your email (only works with GMAIL).
4. Put in your email app password.
5. Put in the email(s) you want to receive the notifications.
6. Now put in the delay between fetches you'd like to have.
<details>
  <summary>How to get an app password</summary>
  
  1. go to [manage my google account](https://myaccount.google.com/security)
  2. Under "Signing in to Google" confirm that "2-Step Verification" is "On" for the account.
  3. Under "Signing in to Google" Select "App passwords".
  4. Select the app as "Mail" and the device as "Other (Custom name)" and name it (e.g: moodle_notifications).
  5. Copy the app password, it will be in a yellow box and looks like: "XXXX XXXX XXXX XXXX".
</details>


### Running the program
You can now try running the program by running 
```bash
python3 moodle_notifier.py
```

## Running the program in the background
### If you're on Linux or Mac OSX
You can run the following in your terminal before closing it to have the script run in the background.
```bash
nohup python3 moodle_notifier.py &
```

If you ever want to kill the process you can run the following in your terminal to first find the process id, and then kill that process.
```bash
ps -e | grep python3
``` 
```bash
kill -9 id_returned
```

*note:* If you have several programs running on `python3`, then I'm not sure how further help you narrow it down. I use `python3.10` and I never have other processes using it.

### If you're on Windows
You can run the following in your terminal to run the script in the background
```bash
pythonw.exe moodle_notifier.py
```

To kill the process, you can open the task manager and kill the process called `pythonw.exe`.
HypixelLib 2022.1.14.6
A Package for the Hypixel API
Requires Python: >=3.6

.. image:: https://github.com/Kejax/Hypixel-Lib/blob/main/doc/Main.png
	:target: https://hypixel.net
	:alt: Hypixel Lib


The Lib to request Hypixel API
===============================

With this API you're able to get much more info from the public Hypixel API
as from hypixelaPY

ATTENTION! SINCE VERSION 2022.01.13.01 THE LIBRARY IS IN ASYNC/AWAIT EXPRESSION!
ALL VERSIONS BEFORE THIS WILL BE USED THE SAME BUT WITHOUT ASYNC/AWAIT.

When the main parts of the library are ready, the library will also be avaiable in non-async expression with "HypixelLib_Sync"


Why I should use it?
---------------------

You should use it, because it's a friendly Lib, wich is able to be added by functions


What is included in this Lib?
-----------------------------

This Lib includes nearly all features from the Hypixel API
some features of the Mojang API and the Mojang SessionServer
returns pictures from the `plancke.io <https://plancke.io>`__ picture generator

Import Hypixel-Lib in Python
-----------------------------

.. code:: sh
    
    pip install HypixelLib

.. code:: python

    import HypixelLib
    
Code Examples
^^^^^^^^^^^^^

.. code:: python
    
    import HypixelLib
    import asyncio
    
    hypixel = HypixelLib.Hypixel("<APIKEY>")
    
    player = asyncio.run(hypixel.player.get(name="name", uuid="uuid"))
    print(player.name)
    print(player.rank.name)
    print(player.uuid)
teletiffinfo 0.0.4
Fetch metadata from remote (https) tiff.

# teletiffinfo

Read metadata of remote TIFF according to [TIFF6 spec](https://www.adobe.io/open/standards/TIFF.html) (currently only reads width and height.)

## Requirements

server must support [RANGE request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range).

## Why?

For large TIFF files, it is often not feasible to download the full TIFF file in order to access the metadata. 

## Installation

- via pip
```sh
pip install teletiffinfo
```

## Usage

```python
from teletiffinfo import try_tiff
try_tiff("https://file-examples-com.github.io/uploads/2017/10/file_example_TIFF_10MB.tiff") # returns (1950, 1301)
```

One could also add any custom header
```python
from teletiffinfo import try_tiff
try_tiff("https://my.example.com/protected_tiff.tiff", {
    "Authorization": "Bearer ey..."
})
```

## License

MIT
nastran-aero-flutter 0.2.0
A small example package
Requires Python: >=3.6

[![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/zuckberj/nastran-aero-flutter/?ref=repository-badge)

# nastran-aero-flutter

This project is intended to analyze the Supersonic Panel Flutter using the NASTRAN routines.
It has pre and post processing routines to generate the NASTRAN models and parse the results.

The project uses the pyNastran and the python scientific packages (i.e., scipy, numpy, matplotlib).

Currently, the focus is to use the aerodynamic Piston Theory, available on NASTRAN with the CAERO5 element.
But it can be extended to use with any aerodynamic element.

This software is result of a research project of the Department of Mechanical Engineering
at the Federal University of Minas Gerais (UFMG).

Please, [cite us](./docs/cite-us.md) if you use this project.

## What is Panel Flutter?

Panel Flutter is a specific phenomena studied in the aerospace engineering field. It is a dynamic instability resulted from the interaction of aerodynamic, elastic and inertial forces (and thermal stresses). It mostly happens at supersonic speeds (M > 1.2) mostly because the needed energy to provide instability in such structure (a panel) is high.

## What is NASTRAN?

NASTRAN (acronym for NAsa STRuctural ANalysis) is a software originally made by NASA in FORTRAN for structural analysis. It has become public domain since (??), and after that CAE companies had developed the code further, but closely.
Today -- actually since the 70's -- it have many capabilities, including aeroelastic analysis.

Some efforts in the FOSS version of Nastran are placed in the [MYSTRAN](https://www.mystran.com/).

## Use

Some examples of utilization are placed on the [notebooks](./notebooks) directory. Please refer to them. Some documentation shall be made soon.

Here are some resulting plots made with the package.

![V-f](https://i.imgur.com/4yHdjqo.png)

![V-g](https://i.imgur.com/fnTF7IR.png)

## Contributing

Please, make a fork of the project, a PR and be clear in the intends and modifications made.
Thank you for the interest!