semvec/pypi-packages huggingface dataset:
django-medilab-ds 1.0.1
medilab_pro porting for django
Requires Python: >=3.8

# django-medilab_ds

django-medilab_ds 는 medilab-pro v4.8.0을 장고에 맞게 포팅한 장고앱이다.


## 프로젝트에 설치하기
> 1. medilab 앱과 demian_parts 앱을 프로젝트 settings.py 의 INSTALLED_APPS 에 추가한다.
> ```python
> import os
> INSTALLED_APPS = [
>     ...
>     'demian_parts',
>     'medilab',
> ]
> ```
> 2. 프로젝트의 urls.py에 medilab url을 추가한다.
> ```python
> from django.urls import path, include
> 
> urlpatterns = [
>     ...
>     path('', include('medilab.urls')),
> ]
> ```
> 3. 케이스를 입력하기 위해서 프로젝트에 medilab 데이터베이스를 생성한다.
> ```commandline
>     python manage.py makemigrations medilab demian_parts
>     python manage.py migrate
>     python manage.py createsuperuser
> ```
> 4. http://127.0.0.1:8000/admin 으로 접속하여 블로그를 입력한다.

> 프로젝트 구조 생성하기
> 1. 개별 업체의 static 폴더 경로를 INSTALLED_APPS 에 추가한다.
> ```python
> import os
> STATICFILES_DIRS = [
>   os.path.join(BASE_DIR, '_static/'),
> ]
> ```
> 2. _data 폴더를 생성하고 contents.py내에 데이터를 형식에 맞게 입력한다.
> 3. _static 폴더를 생성하고 각종 이미지 등을 형식에 맞게 저장한다.

> 참고 : SCSS 설치하기 - 프로젝트에 SCSS를 설치해야 앱이 작동한다.    
> https://www.accordbox.com/blog/how-use-scss-sass-your-django-project-python-way/   
> 1. django_compressor, django-libsass를 설치한다. (앱을 설치하면 자동으로 설치된다.)
> ```commandline
> pip install django_compressor django-libsass
> ```
> 2. 프로젝트 settings.py 의 INSTALLED_APPS 에 다음을 추가한다.
> ```python
> import os
> INSTALLED_APPS = [
>     ...
>     'compressor',
> ]
> 
> COMPRESS_PRECOMPILERS = (
>     ('text/x-scss', 'django_libsass.SassCompiler'),
> )
> 
> STATICFILES_FINDERS = [
>     'django.contrib.staticfiles.finders.FileSystemFinder',
>     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
>     'compressor.finders.CompressorFinder',
> ]
> 
> # compressor 앱을 실행하기 위해서는 STATIC_ROOT가 설정되어 있어야 한다.
> STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
> ```
injectdep 0.0.1
Injección de dependencias para python
Keywords: python,injection,dependency,jbuendia1y,library

# Probando injection dependency

Librareria para la inyecciÃ³n de dependencias para python

## PorquÃ© usarlo ?

Pues esta librerÃ­a estÃ¡ hecha para proyectos pequeÃ±os que no necesiten testear la applicaciÃ³n o que quieran probar la inyecciÃ³n de dependencias


## CÃ³mo usarlo ?

AquÃ­ es un ejemplo de inyecciÃ³n de forma global con la librerÃ­a

```py
from injectdep import global_module


@global_module.register
class MyDB:
    def find_all():
        return ["Jhon", "Pepe", "Carlos"]

def main(db: MyDB):
    results = db.find_all()
    print(results) # ["Jhon", "Pepe", "Carlos"]


if __name__ == "__main__":
    injected = global_module.inject(main)
    injected()
```

## Puede construir su propio mÃ³dulo

```py
from injectdep import Module

database_module = Module()

@database_module.register
class MyDB:
    def find_all():
        return ["Jhon", "Pepe", "Carlos"]

def main(db: MyDB):
    results = db.find_all()
    print(results) # ["Jhon", "Pepe", "Carlos"]


if __name__ == "__main__":
    injected = database_module.inject(main)
    injected()
```

<p align="center">Inspirado en AngularModules</p>
forced-url-modifier 0.0.7
for URL forced FULL encoding & decoding
Requires Python: >=3.5

# forced_url
for URL forced FULL encoding &amp; decoding <br/><br/>
by dh kim

## usage

<pre><code>
from forced_url_modifier import URL_Modifier

um = URL_Modifier()

payload = '<script>alert("XSS")</script>'
encoded_payload = um.forced_url_encoding(payload)
print("Encoded payload: ", encoded_payload)


payload = '%3Cscript%3Ealert%28%22XSS%22%29%3C%2Fscript%3E'
decoded_payload = um.forced_url_decoding(payload)
print("Decoded payload: ", decoded_payload)
</code></pre>
pysolvemath 0.3
Numeric Solver.

# pysolvemath
Numeric Solver.

## Usage

### Real-valued Equations

```python
from pysolvemath import solve_equations

def equations(x, y):
    x + y == 10
    2 * x == 8


res = solve_equations(equations)  
# res == {"x": 4.0, "y": 6.0}
```

By default, result are of type `float`, representing arbitrary real numbers.

Caller can use type hint of `int` and `fractions.Fraction` to specify unknown to "corerce" to that type. 

```python
from fractions import Fraction
from pysolvemath import solve_equations

def equations(x: int, y, z: Fraction):
    x + z == 1.5
    x**2 == 9
    y + z == 2

res = solve_equations(equations)
# res == {"x": 3, "y": 3.5, "z": -3/2}
```

As this is a numerical solver, this package only gets one (set of) root depending on starting point.

In the example above, we can also derive `{"x": -3, "y": -2.5, "z": 9/2}`, if we start the root finder from negative `x`.

User can proivde `init_guess_func` to specify the starting point.
untappd 0.5
Untappd wrapper library
Requires Python: >=3.7

untappd-python
==============

Python wrapper for the [Untappd v4 API](https://untappd.com/api/docs/v4). Developed to power [No Gluten Beer](http://noglutenbeer.com).

Based almost entirely on the excellent [foursquare](https://github.com/mLewisLogic/foursquare).

## Installation

    pip install untappd

## Usage

    # Construct the client object (user_agent is optional, at least 'authorize' endpoint responds with 'HTTP 429 Too Many Requests' to default User-Agent header string like 'python-requests/2.24.0')
    client = untappd.Untappd(client_id='YOUR_CLIENT_ID', client_secret='YOUR_CLIENT_SECRET', redirect_url='YOUR_REDIRECT_URL', user_agent='letmein')

### Authentication

For endpoints that access a user's data, you must obtain an access token before you can request data from the API:

    # Build the authorization url for your app
    auth_url = client.oauth.get_auth_url()

Redirect your user to the address *auth_url* and let them authorize your app. They will then be redirected to your *redirect_url*, with a query paramater of code=XX_CODE_RETURNED_IN_REDIRECT_XX. In your webserver, parse out the *code* value, and use it to call client.oauth.get_access_token()

    # Interrogate Untappd to get the user's access_token
    access_token = client.oauth.get_access_token('XX_CODE_RETURNED_IN_REDIRECT_XX')

    # Apply the returned access token to the client
    client.set_access_token(access_token)

    # Grab authenticated data
    user = client.user.info()

### Making Requests

Making requests to the Untappd API is simple. This wrapper mirrors the API endpoint structure detailed in the [documentation](https://untappd.com/api/docs/v4). For example, the [Activity Feed endpoint](https://untappd.com/api/docs#activityfeed) is */v4/checkin/recent* so you can pull data from this endpoint like this:

    activity_feed = client.checkin.recent()

You can send parameters using keyword arguments:

    activity_feed = client.checkin.recent(min_id=10, limit=50)

For endpoints that require a parameter in the endpoint URL, like [Brewery Info](https://untappd.com/api/docs#breweryinfo) (*/v4/brewery/info/BREWERY_ID*), you include that parameter as the first argument in your request:

    brewery_info = client.brewery.info('BREWERY_ID')

Any additional parameters you want to include should be keyword arguments:

    brewery_info = client.brewery.info('BREWERY_ID', compact='true')

If the endpoint URL has three components, like [Add to Wish List](https://untappd.com/api/docs#addwish) (*/v4/user/wishlist/add*), you must separate the second and third component with an underscore:

    result = client.user.wishlist_add(bid='BEER_ID')