{"id":18738601,"url":"https://github.com/pythonindia/pyconindia","last_synced_at":"2025-04-12T19:32:57.044Z","repository":{"id":14000961,"uuid":"16702261","full_name":"pythonindia/pyconindia","owner":"pythonindia","description":"PyCon India","archived":false,"fork":false,"pushed_at":"2014-08-25T10:14:34.000Z","size":1052,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-26T14:08:13.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonindia.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-10T17:00:13.000Z","updated_at":"2019-03-04T04:47:51.000Z","dependencies_parsed_at":"2022-08-24T09:01:03.232Z","dependency_job_id":null,"html_url":"https://github.com/pythonindia/pyconindia","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonindia%2Fpyconindia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonindia%2Fpyconindia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonindia%2Fpyconindia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonindia%2Fpyconindia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonindia","download_url":"https://codeload.github.com/pythonindia/pyconindia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248621419,"owners_count":21134845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T15:29:41.963Z","updated_at":"2025-04-12T19:32:56.748Z","avatar_url":"https://github.com/pythonindia.png","language":"Python","readme":"Publicity Mail Usage\n====================\n\nThe command line syntax of the tool is as given below.\nThe ``-c``, ``-s`` and ``-t`` options are mandatory::\n\n  usage: publicitymail [-h] [-c CONFIG] [-s SUBJECT] [-t TEMPLATE]\n\n  optional arguments:\n    -h, --help            show this help message and exit\n    -c CONFIG, --config CONFIG\n                          Configuration file\n    -s SUBJECT, --subject SUBJECT\n                          Mail subject\n    -t TEMPLATE, --template TEMPLATE\n                          Mail body template\n\nAn example configuration file is available at ``conf/example1.cfg``.\nAn example template file is available at ``conf/example1.template``.\n\nAny value inside the configuration can be overridden using a specially\nformatted environment variable. The environment variable name should\nbe in this format: PUBLICITY_\u003cSECTION\u003e_\u003cKEY\u003e\n\nFor example, to override the value of ``password`` inside the ``main`` section,\nset an environment variable named ``PUBLICITY_MAIN_PASSWORD`` like this::\n\n  export PUBLICITY_MAIN_PASSWORD=the-real-password\n\nOnce the configuration file and template is ready, a mail can be send like\nthis::\n\n  publicitymail -c /path/to/config.cfg -s \"The mail subject\" -t /path/to/some.template\n\nIt is recommended to use separate configuration and template for different mails.\n\nThe configuration\n-----------------\n\nThis is example configuration::\n\n  [main]\n  username = baiju.m.mail@gmail.com\n  password = this-is-wrong-password\n  from_email = baiju.m.mail@gmail.com\n  from_name = Baiju Muthukadan\n\n  [to_addresses]\n  bangpypers@python.org = Bangalore\n  ...\n\n  [bangpypers@python.org]\n  key1 = value1\n  ...\n\nThe ``main`` section has the ``username`` and ``password`` for the Gmail account.\nIt also contains the email and name from whom the mail is sending.\n\nThe ``to_addresses`` section lists all the recipients email address and name.\nThere should be separate sections for each address to include user specific\nvalues in the mail.  The values given in the email sections can be used in\ntemplate file using the Jinja2 macro syntax.  In the above example,\nthe ``value`` corresponding to ``key1`` can be used in the mail like this:\n``{{ key1 }}``.\n\nTo comment any line, add ``#`` character at the beginning of that\nline.  More specifically, the ``#`` should be the first character in\nthat line.\n\nThe template file use the Jinja2 template language.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonindia%2Fpyconindia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonindia%2Fpyconindia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonindia%2Fpyconindia/lists"}