PKHnccFresnoPython/utils.py def indent(text): return '\n'.join([' {0}'.format(l.strip()) for l in text.splitlines()]) PKH"QFresnoPython/compat.pytry: # Python 3 from urllib.parse import quote_plus except ImportError: # Python 2 from urllib import quote_plus PK୸H܊ƗFresnoPython/__init__.pyimport datetime import webbrowser import dateutil.rrule from .compat import quote_plus from .utils import indent # What. name = 'Fresno.py' description = 'The Fresno Python User Group' # Where. location = 'Bitwise Industries' address = ''' 700 Van Ness Ave Fresno, CA ''' map = 'https://www.google.com/maps?q={0}'.format( quote_plus(' '.join(address.split()))) # When. schedule = dateutil.rrule.rrule( freq=dateutil.rrule.MONTHLY, byweekday=dateutil.rrule.TU, bysetpos=4 ) # On the web. website = 'http://FresnoPython.com' twitter = 'http://twitter.com/FresnoPython' def open_website(): return webbrowser.open(website) def open_twitter(): return webbrowser.open(twitter) def open_map(): return webbrowser.open(map) def next_meeting_date(date=None): if date is None: date = datetime.date.today() if isinstance(date, datetime.date): date = datetime.datetime.combine(date, datetime.datetime.min.time()) return datetime.datetime.combine( schedule.after(date).date(), datetime.time(18, 30) ) def message(): template = ''' {name} -- {description} {website} Fresno.py's mission is to foster a welcoming and diverse community of Python developers and promote the use of the Python programming language in the Central Valley. People of all skill levels are welcome; if you are interested in Python, we'd love to have you join us! Next meeting: {next_meeting} {location} {address} Map: {map} Follow us on Twitter! {twitter} ''' content = indent(template.format( name=name, description=description, website=website, twitter=twitter, location=location, address=address.strip(), map=map, next_meeting=next_meeting_date().strftime('%A %B %e, %Y at%l:%M%P'), )) return content PKbHN)FresnoPython-1.0.0.data/scripts/fresno.py#!python import argparse import FresnoPython def main(args): if args.website: FresnoPython.open_website() if args.map: FresnoPython.open_map() if args.twitter: FresnoPython.open_twitter() print(FresnoPython.message()) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('--website', action='store_true', help='Open the website.') parser.add_argument('--map', action='store_true', help='Open the location on Google Maps.') parser.add_argument('--twitter', action='store_true', help='Open the twitter account.') args = parser.parse_args() main(args) PK H^- ,FresnoPython-1.0.0.dist-info/DESCRIPTION.rstUNKNOWN PK HVWsȀ*FresnoPython-1.0.0.dist-info/metadata.json{"classifiers": ["Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules"], "extensions": {"python.details": {"contacts": [{"email": "derek.payton@gmail.com", "name": "Derek Payton", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/dmpayton/FresnoPython"}}}, "extras": [], "generator": "bdist_wheel (0.26.0)", "keywords": ["fresno", "user", "group"], "license": "MIT", "metadata_version": "2.0", "name": "FresnoPython", "run_requires": [{"requires": ["python-dateutil (==2.5.3)"]}], "summary": "Information for the Fresno Python User Group", "version": "1.0.0"}PK H( *FresnoPython-1.0.0.dist-info/top_level.txtFresnoPython PK Hndnn"FresnoPython-1.0.0.dist-info/WHEELWheel-Version: 1.0 Generator: bdist_wheel (0.26.0) Root-Is-Purelib: true Tag: py2-none-any Tag: py3-none-any PK HPӲ%FresnoPython-1.0.0.dist-info/METADATAMetadata-Version: 2.0 Name: FresnoPython Version: 1.0.0 Summary: Information for the Fresno Python User Group Home-page: https://github.com/dmpayton/FresnoPython Author: Derek Payton Author-email: derek.payton@gmail.com License: MIT Keywords: fresno user group Platform: UNKNOWN Classifier: Development Status :: 3 - Alpha Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Natural Language :: English Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3.5 Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Dist: python-dateutil (==2.5.3) UNKNOWN PK H]YY#FresnoPython-1.0.0.dist-info/RECORDFresnoPython/__init__.py,sha256=Tw3UG3T169adXFTIxOasaZcyBhJL-FewzsnCLxkGeWQ,1943 FresnoPython/compat.py,sha256=vwi6dj9nBcuyBFa-wvnz0ZqLJHRz2MfJkdDLYT0EiGc,129 FresnoPython/utils.py,sha256=utR9xuFwXNw4MEK3tLptuhe0w6w_S5EN7MArTpXUq0c,99 FresnoPython-1.0.0.data/scripts/fresno.py,sha256=Ue5bktsUuyEKZm5BzQi8E6Yp3ayMuQKdw2wtYwmwGuA,685 FresnoPython-1.0.0.dist-info/DESCRIPTION.rst,sha256=OCTuuN6LcWulhHS3d5rfjdsQtW22n7HENFRh6jC6ego,10 FresnoPython-1.0.0.dist-info/METADATA,sha256=p00g0AE3GexQ-st4y0s8vTEp132A_ZDZPSZjhi7cKbg,726 FresnoPython-1.0.0.dist-info/RECORD,, FresnoPython-1.0.0.dist-info/WHEEL,sha256=GrqQvamwgBV4nLoJe0vhYRSWzWsx7xjlt74FT0SWYfE,110 FresnoPython-1.0.0.dist-info/metadata.json,sha256=qxk_yK8J40usWpDWfsZQN9Cl0tDJUGtpC5_Gks46yAs,896 FresnoPython-1.0.0.dist-info/top_level.txt,sha256=m1tMIO2lnK-zsfdgg3RkW344uT_Fv5uT0o2nZel-_nA,13 PKHnccFresnoPython/utils.pyPKH"QFresnoPython/compat.pyPK୸H܊ƗKFresnoPython/__init__.pyPKbHN) FresnoPython-1.0.0.data/scripts/fresno.pyPK H^- , FresnoPython-1.0.0.dist-info/DESCRIPTION.rstPK HVWsȀ*` FresnoPython-1.0.0.dist-info/metadata.jsonPK H( *(FresnoPython-1.0.0.dist-info/top_level.txtPK Hndnn"}FresnoPython-1.0.0.dist-info/WHEELPK HPӲ%+FresnoPython-1.0.0.dist-info/METADATAPK H]YY#DFresnoPython-1.0.0.dist-info/RECORDPK "