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_info
Add the following to your pelicanconf.py to activate the plugin:
PLUGINS = ['pelican_meetup_info']
Then add on 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=1445&sig=3c0d385c607d27a7bd3ae14f220f17856eb163b0' MEETUP_EVENTS_SIGNED_URL= 'https://api.meetup.com/Cleveland-Area-Python-Interest-Group?photo-host=public&sig_id=1445&sig=3c0d385c607d27a7bd3ae14f220f17856eb163b0'
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
Hashes for pelican-meetup-info-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6933d6244441542615b74805466f127e25483922df34d103b7fbc16897522b |
|
MD5 | ac608aefd0715104cda17cd271c8243e |
|
BLAKE2b-256 | 5b1606924edd78aab16d3179d2086c9ac3ca0a397eebb8e9826499ddec03f1a0 |
Hashes for pelican_meetup_info-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76f5fa2fc25c835a4470a8ce15330c45b38a037b89e1675fdcece750cf95a484 |
|
MD5 | 54ae3bc42722b4c9697f624ef0d48c84 |
|
BLAKE2b-256 | 81f2ac1d9b07ad94dd9674426a0a4cebe82855dea4d589e6bab998e6956e19c3 |