calendar-plus-0.0.1
توضیحات
A calendar library for creating HTML calendars that contain query objects
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | calendar-plus-0.0.1 |
| نام | calendar-plus |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Iyanu Ajao |
| ایمیل نویسنده | ajaoiyanu@gmail.com |
| آدرس صفحه اصلی | https://github.com/iyanuashiri/calendar-plus |
| آدرس اینترنتی | https://pypi.org/project/calendar-plus/ |
| مجوز | MIT |
# calendar-plus
Calendar-plus is a simple library for creating HTML Calendar that includes query objects.
This is an example of what the library allows you to do.

## Installation
```commandline
pip install calendar-plus
```
## How to use
So you have a class for an event object that looks something like below. This example is based on Django
framework.
```python
class Event(models.Model):
name = models.CharField()
time = model.TimeField()
date = models.DateField()
```
The query is `events = Event.objects.filter(date__year=year, date__month=month)`
Using the library
```python
from calendarplus import ModelCalendar
calendar = ModelCalendar(year=month, month=month).formatmonth(events)
context['calendar'] = calendar
return context
```
You can now use the context_object_name in your template. This library requires bootstrap framework to
render beautifully. You can override the formatmonth to use your own css class.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl calendar-plus-0.0.1:
pip install calendar-plus-0.0.1.whl
نصب پکیج tar.gz calendar-plus-0.0.1:
pip install calendar-plus-0.0.1.tar.gz