semvec/pypi-packages huggingface dataset:
giant-events 0.3.0.2
A small reusable package that adds an Events app to a project
License: MIT
Requires Python: <4.0.0,>=3.6.2
Keywords: events, app

# Giant Events

A re-usable package which can be used in any project that requires a generic `Events` app. 

This will include the basic formatting and functionality such as model creation via the admin.

## Installation

To install with the package manager, run:

    $ poetry add giant-events

You should then add `"events", "easy_thumbnails" and "filer"` to the `INSTALLED_APPS` in `base.py`.  


## Configuration

This application exposes the following settings:

- `EVENT_ADMIN_LIST_DISPLAY` is the field list for the admin index. This must be a list
- `EVENT_ADMIN_FIELDSETS` allows the user to define the admin fieldset. This must be a list of two-tuples
- `EVENT_ADMIN_READONLY_FIELDS` allows the user to configure readonly fields in the admin. This must be a list
- `EVENT_ADMIN_SEARCH_FIELDS` allows the user to configure search fields in the admin. This must be a list
- `EVENT_ADMIN_FILTER_FIELDS` allows the user to configure filter fields in the admin. This must be a list
- `PAGINATE_EVENTS_BY` allows user to determine how many events to paginate by on the index page. Applies to time directed queryset. This must be an int
- `DEFAULT_TIME_DIRECTION` chose from one of the following options - PAST, FUTURE & ANYTIME

By default the app will use the templates that are defined inside the app directory itself. However if you wish to override which template is used you will need to create a directory in the projects template directory
The structure should look something like this:

```
templates/
    events/
        index.html
        detail.html
```



## URLs

Add the following to `core.urls` for general functionality:

    path("events/", include("events.urls"), name="events"),

If you want to customize the urls to include a different path and/or templates, first you must import `from events import views as event_views` in `core.urls` and then you could add the following:

    path("events/", event_views.EventIndex.as_view(template_name="event/index.html"), name="event-index"),
    path("events/<slug:slug>/", event_views.EventDetail.as_view(template_name="event/detail.html"), name="event-detail"),
 
 ## Preparing for release
 
 In order to prep the package for a new release on TestPyPi and PyPi there is one key thing that you need to do. You need to update the version number in the `pyproject.toml`.
 This is so that the package can be published without running into version number conflicts. The version numbering must also follow the Semantic Version rules which can be found here https://semver.org/.
 
 ## Publishing
 
 Publishing a package with poetry is incredibly easy. Once you have checked that the version number has been updated (not the same as a previous version) then you only need to run two commands.
 
    $ `poetry build` 

will package the project up for you into a way that can be published.
 
    $ `poetry publish`

will publish the package to PyPi. You will need to enter the username and password for the account which can be found in the company password manager
chc 1.4
Search your favorite songs/artists/playlists/genres, Get details and recommendations.
License: MIT
Requires Python: >=3.5
Keywords: spotify, recommendation, ml, music

<div align="center">
<h1>CHC</h1>
<p>Search your favorite songs/artists/playlists/genres</p>
<p>Get details and recommendations</p>
</div>


<h2>Installation:</h2>

```bash
python3 -m pip install chc
```

<h2>Examples:</h2>

<h3>Chc:</h3>

```python
from chc import Chc

# Search based on [track, artist, playlist] id
Chc.Search('Powerwolf', basedon='artist', limit=10)

# Get Details based on [track, artist, playlist] id 
Chc.GetDetails('0bUgTRe5st6TMbRCEjKezX', basedon='track')

# Get recommendation based on [track, artist, playlist] id or [genre] name
Chc.GetRecommendation('0bUgTRe5st6TMbRCEjKezX', basedon='track', limit=10)
```

<h3>Chc.sync:</h3>

```python
import asyncio
from chc.sync import Chc

async def my_test():
    # Search based on [track, artist, playlist] id
    await Chc.Search('Powerwolf', basedon='artist', limit=10)
    
    # Get Details based on [track, artist, playlist] id 
    await Chc.GetDetails('0bUgTRe5st6TMbRCEjKezX', basedon='track')
    
    # Get recommendation based on [track, artist, playlist] id or [genre] name
    await Chc.GetRecommendation('0bUgTRe5st6TMbRCEjKezX', basedon='track', limit=10)
    
asyncio.run(my_test())
```