A Pelican plugin that provides group and event information for a meetup.com group.
Project description
A Pelican plugin for including Meetup group and event information on generated pages and articles.
Installation
Install this package:
pip install pelican_meetup_infoAdd the following to your pelicanconf.py to activate the plugin:
PLUGINS = ['pelican_meetup_info']Then add one of the following pairs of configs:
If you keep your config file private:
MEETUP_API_KEY = 'your key here' MEETUP_URLNAME = 'Cleveland-Area-Python-Interest-Group'Get your API key here: https://www.google.com/search?q=meetup+api+key&ie=utf-8&oe=utf-8
Or if you expose your config file to the public (like in a public repo):
MEETUP_GROUP_SIGNED_URL = 'https://api.meetup.com/Cleveland-Area-Python-Interest-Group?photo-host=public&sig_id=1442&sig=3c0d385c607d27a7bd3ae14f220f17856eb163c1' MEETUP_EVENTS_SIGNED_URL= 'https://api.meetup.com/Cleveland-Area-Python-Interest-Group/events?photo- host=public&page=20&sig_id=1442&sig=3dcd3aa3bfacf17cb45302a722ced9727e99cd37'More info about signed URLs here: https://www.meetup.com/meetup_api/auth/#keysign
Usage
With the plugin installed and properly configured, new dictionaries named meetup_group and meetup_events containg the Meetup API responses will be availabe in your page/article context. You may reference them in templates like this:
meetup_group:
{% if page.meetup_group %} <h2>Meetup Info</h2> <h3><a href="{{ page.meetup_group.link }}">{{ page.meetup_group.name }}</a></h3> {{ page.meetup_group.description }} {% endif %}
More info about group data: https://secure.meetup.com/meetup_api/console/?path=/:urlname
meetup_events:
{% if page.meetup_events %} <h2>Upcoming Meetups</h2> <ul> {% for meetup_event in page.meetup_events[:3] %} <li> <h3><a href="{{ meetup_event.link }}">{{ meetup_event.name }}</a></h3> <p>{{ meetup_event.local_date }} at {{ meetup_event.local_time }}</p> <p>{{ meetup_event.description }}</p> <p>At {{ meetup_event.venue.name }} - {{ meetup_event.venue.address_1 }}, {{ meetup_event.venue.city }}, {{ meetup_event.venue.state }} {{meetup_event.venue.zip }}</p> </li> {% endfor %} </ul> {% endif %}
More info about events data: https://secure.meetup.com/meetup_api/console/?path=/:urlname/events
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pelican-meetup-info-0.0.2.tar.gz.
File metadata
- Download URL: pelican-meetup-info-0.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376a22f1f724273cbfe98873a7107e97b3e1df32ff30acba8e30cd4833690287
|
|
| MD5 |
92638a887fa81cc823358a6d343463bc
|
|
| BLAKE2b-256 |
b3e3c67000c42260e7ed3692e73c57116b77025cc8a12795dbdf6831e9333e6d
|
File details
Details for the file pelican_meetup_info-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: pelican_meetup_info-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5f53efe2a3bb3a532202647e531641367738e8675299128b9c8661aa70501fc
|
|
| MD5 |
7fbe7b11ca6b684d6716d9be9ecd792b
|
|
| BLAKE2b-256 |
c311cd6577617bb2364ad03dd6d588e3c7eec71fe2f9c136da0517eb9be5a74b
|