semvec/pypi-packages huggingface dataset:
Bitcoin-Price 0.3
A package for bitcoin price notification in telegram
License: MIT

[If you want to check python file of main code go to Bitcoin_Price->BitcoinPrice]
Steps for Setup:
    1. If you do not have python 3 version in your system then, you should update or install it first.
        Go to this link https://www.python.org/downloads/
    2. If you do not have pip installed in your system, you should install it.
        For windows-https://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows
        For Linux-https://www.tecmint.com/install-pip-in-linux/
    3. If system satisfy both requirements than just use following command to install project.
        pip install Bitcoin_Price
    4. If everything installed right than you just have to go to your command prompt or bash and type
        Bitcoin_Price h
        This will show you all commands.
    else do this
        1. Install requirments library, by following command.
            pip install requests.
        2. Download this directory in your system by git clone and pull command.
        3. Open dir and go in Bitcoin_Price->BitcoinPrice, here you can see Bitcoin_Price.py file.
        4. Save the above path as system path by going as
            System properties->Advance system setting->Environmental Variables
            Here left click on path and then left click on Edit.
            Then save the path.
            You can follow this link: https://www.youtube.com/watch?v=Y2q_b4ugPWk for window
                                    https://www.youtube.com/watch?v=abN6bvyPRxQ for linux
        4. After succesfully adding path, open your command prompt or bash and run "Bitcoin_Price.py h, this will shows you all commands"
django-yearmonth-widget 0.2.1
We only care about year and month for DateField, and always set the day to 1, it's a Django Widget allow you select the year and month. And now we support CharField backend.
License: MIT
Keywords: django admin extentions,django yearmonth widget

# django-yearmonth-widget

We only care about year and month for DateField, and always set the day to 1, it's a Django Widget allow you select the year and month. And now we support CharField backend.

## Install

```shell
pip install django-yearmonth-widget
```

## Usage

**pro/settings.py**

```python
INSTALLED_APPS = [
    ...
    'django_static_jquery3',
    'django_yearmonth_widget',
    ...
]
```

**app/admin.py**

```python
from django.contrib import admin
from django import forms
from django_yearmonth_widget.widgets import DjangoYearMonthWidget
from .models import Book


class BookForm(forms.ModelForm):
    class Meta:
        model = Book
        exclude = []
        widgets = {
            "published_yearmonth": DjangoYearMonthWidget(),
        }

class BookAdmin(admin.ModelAdmin):
    form = BookForm
    list_display = ["name", "published_time"]

admin.site.register(Book, BookAdmin)
```

**Note:**

1. Create a ModelForm, and set new widget for the field.

## DjangoYearMonthWidget Init parameters

- years: list of year numbers. Default to None.
    - If years provided, parameters prev_years and next_years are ignored.
- start_year: Default to None. Use to set the beginning of year range, have higher priority than prev_years.
- end_year: Default to None. Use to set the ending of year range, have higher priority than next_years.
- prev_years: int, default to 10.
- next_years: int, default to 0.
    - Use prev_years, next_years to set the year range based on today's year.
    - prev_years means the begining year is now.year - prev_years. If today's year is 2020 and the prev_years=10, so that the final years is start at 2010.
    - next_years means the ending year is now.year + next_years. If today's year is 2020 and the next_years=10, so that the final years is end at 2030.
- day_value: int, default to 1.
- value_dumps: string template, e.g. `%(year)04d-%(month)02d-%(day)02d`
- value_loads: regex parse the string value, e.g. `(?P<year>\d{4})-(?P<month>\d{1,2})-(?P<day>\d{1,2})`
    - value_dumps and value_loads must matchs with each other, it means value_loads regex CAN parse string dumped with value_dumps.
    - value_dumps MUST in `%(xx)d` so that both python and javascript can do the string formatting.

## Releases

### v0.2.1 2020/03/27

- Fix inline form rendering problem, because it contains a NONE value year-month for inline form row template.
- Change event listenning method to $.to, so that the widget will work in inline form.

### v0.2.0 2020/03/16

- Add start_year & end_year parameters. The parameters start_year and end_year have higher priority than prev_years and next_years.
- Add support for CharField. You must provide value_dumps and value_loads for CharField backend.

### v0.1.0 2020/03/10

- First release.