{ "info": { "author": "Dave Forgac", "author_email": "tylerdave@tylerdave.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License" ], "description": "====================\npelican-meetup-info\n====================\n\nA Pelican plugin for including Meetup group and event information on generated pages and articles.\n\n***************\nInstallation\n***************\n\n* Install this package:\n\n .. code-block:: shell\n\n pip install pelican_meetup_info\n\n* Add the following to your `pelicanconf.py` to activate the plugin:\n\n .. code-block:: python\n\n PLUGINS = ['pelican_meetup_info']\n\n* Then add one of the following pairs of configs:\n\n * If you keep your config file private:\n\n .. code-block:: python \n\n MEETUP_API_KEY = 'your key here'\n MEETUP_URLNAME = 'Cleveland-Area-Python-Interest-Group'\n\n Get your API key here: https://www.google.com/search?q=meetup+api+key&ie=utf-8&oe=utf-8\n\n * Or if you expose your config file to the public (like in a public repo):\n\n .. code-block:: python \n\n MEETUP_GROUP_SIGNED_URL = 'https://api.meetup.com/Cleveland-Area-Python-Interest-Group?photo-host=public&sig_id=1442&sig=3c0d385c607d27a7bd3ae14f220f17856eb163c1'\n MEETUP_EVENTS_SIGNED_URL= 'https://api.meetup.com/Cleveland-Area-Python-Interest-Group/events?photo- host=public&page=20&sig_id=1442&sig=3dcd3aa3bfacf17cb45302a722ced9727e99cd37'\n\n More info about signed URLs here: https://www.meetup.com/meetup_api/auth/#keysign\n\n\n***************\nUsage\n***************\n\nWith 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:\n\nmeetup_group:\n\n .. code-block:: html \n\n {% if page.meetup_group %}\n
{{ meetup_event.local_date }} at {{ meetup_event.local_time }}
\n{{ meetup_event.description }}
\nAt {{ meetup_event.venue.name }} - {{ meetup_event.venue.address_1 }}, {{ meetup_event.venue.city }}, {{ meetup_event.venue.state }} {{meetup_event.venue.zip }}
\n