From 5c162a7f40a778ac9d7454d98a707af6637fe7ec Mon Sep 17 00:00:00 2001 From: Chris May Date: Mon, 6 Feb 2023 18:19:12 -0500 Subject: [PATCH 1/3] Add Ruff's `pep8-naming` test to config --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 177a045..4720268 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ dependencies = [] [tool.ruff] # Enable Pyflakes `E` and `F` codes by default. -select = ["E", "F"] +select = ["E", "F", "N"] ignore = ["E501"] # Allow autofix for all enabled rules (when `--fix`) is provided. From cbabacc7593a747b117fd58e2d262deefb94bd16 Mon Sep 17 00:00:00 2001 From: Chris May Date: Mon, 6 Feb 2023 18:21:58 -0500 Subject: [PATCH 2/3] Add Ruff changes --- .dockerignore | 2 +- .vscode/settings.json | 2 +- LICENSE | 2 +- README.md | 10 +++++----- .../command_example/.env-sample | 2 +- docs/00_simple_examples/slash_cogs/Simple.py | 3 ++- docs/00_simple_examples/slash_cogs/test.py | 17 +++++++++++++---- docs/00_simple_examples/test_connect/bot.py | 18 +++++++++++------- src/cogs/fun/futurama.json | 2 +- src/cogs/fun/zen_of_python.md | 2 +- src/cogs/meetup/eventList.json | 2 +- src/cogs/meetup/meetup_rest_api.py | 13 ++++++++----- 12 files changed, 46 insertions(+), 29 deletions(-) diff --git a/.dockerignore b/.dockerignore index 17d737f..e0b41af 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,4 @@ #example of ignoring .git and python cache folder .git __pycache__ -.vscode \ No newline at end of file +.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json index ccdec6c..8bec82a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,4 +3,4 @@ "files.associations": { "*.env*": "properties" }, -} \ No newline at end of file +} diff --git a/LICENSE b/LICENSE index 6ec2aef..2c36b56 100644 --- a/LICENSE +++ b/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/README.md b/README.md index c0ae68b..71cb743 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # PyRVA Bots -This is the PyRVA bot used in the pyrva discord server. +This is the PyRVA bot used in the pyrva discord server. Join the server here: https://discord.gg/PThzSm3n ## Cogs -| COG | Description | Status | Owner | +| COG | Description | Status | Owner | |-----|-------------|--------|-------| | fun | show some examples and general fun stuff | On-Going | Richard | | utilities | these are some practical utilites that are helpful | On-Going | Richard | @@ -37,7 +37,7 @@ Join the server here: https://discord.gg/PThzSm3n - [X] create a list of who is present in meeting - [ ] create tool that automatically assigns a given badge based on presence -> 💡If someone can think of a way to write unit tests / pytests to test things like the raffle cog in particular I am all ears. My best case solution is to setup a Dev/Prod dynamic for testing but that feels like more work than its worth. +> 💡If someone can think of a way to write unit tests / pytests to test things like the raffle cog in particular I am all ears. My best case solution is to setup a Dev/Prod dynamic for testing but that feels like more work than its worth. ## Deployment: @@ -46,7 +46,7 @@ fire and forget: sudo docker-compose up -d ``` -if you want to use the docker-compose during development be sure to destroy/increment the image or the docker-compose will just use the same image over and over. +if you want to use the docker-compose during development be sure to destroy/increment the image or the docker-compose will just use the same image over and over. ``` sudo docker-compose down --rmi all ``` @@ -56,7 +56,7 @@ sudo docker-compose down --rmi all --- # RSB Notes -## Special Thanks go to: +## Special Thanks go to: - https://github.com/Crambin/Orderbot - https://github.com/Xarlos89/ZorakBot ## Helpful Docs: diff --git a/docs/00_simple_examples/command_example/.env-sample b/docs/00_simple_examples/command_example/.env-sample index 7b9372b..580e0c6 100644 --- a/docs/00_simple_examples/command_example/.env-sample +++ b/docs/00_simple_examples/command_example/.env-sample @@ -1,4 +1,4 @@ # .env DISCORD_TOKEN={your-bot-token} -target_channel_id = 984475649521639434 # bot-playground \ No newline at end of file +target_channel_id = 984475649521639434 # bot-playground diff --git a/docs/00_simple_examples/slash_cogs/Simple.py b/docs/00_simple_examples/slash_cogs/Simple.py index 93c9529..0a0072f 100644 --- a/docs/00_simple_examples/slash_cogs/Simple.py +++ b/docs/00_simple_examples/slash_cogs/Simple.py @@ -11,7 +11,7 @@ def __init__(self, bot): @commands.slash_command(description="ping -> pong") async def ping(self, ctx: discord.ApplicationContext): await ctx.respond("pong!") - + @commands.slash_command(description="Say something and the bot will respond!") @option( name="text", @@ -21,5 +21,6 @@ async def ping(self, ctx: discord.ApplicationContext): async def say_something(self, ctx: discord.ApplicationContext, text: str): await ctx.respond(f"You said '{text}'!") + def setup(bot): bot.add_cog(Simple(bot)) diff --git a/docs/00_simple_examples/slash_cogs/test.py b/docs/00_simple_examples/slash_cogs/test.py index 2934071..a8ebf9e 100644 --- a/docs/00_simple_examples/slash_cogs/test.py +++ b/docs/00_simple_examples/slash_cogs/test.py @@ -4,6 +4,7 @@ import discord from dotenv import load_dotenv from discord.commands import SlashCommandGroup + load_dotenv() @@ -21,6 +22,7 @@ # With discord.Bot you can use @bot.command as an alias # of @bot.slash_command but this is overridden by commands.Bot. + @bot.slash_command() # Create a slash command async def hello(ctx: discord.ApplicationContext): """Say hello to the bot""" # The command description can be supplied as the docstring @@ -31,9 +33,12 @@ async def hello(ctx: discord.ApplicationContext): @bot.slash_command(name="hi") -async def global_command(ctx: discord.ApplicationContext, num: int): # Takes one integer parameter +async def global_command( + ctx: discord.ApplicationContext, num: int +): # Takes one integer parameter await ctx.respond(f"This is a global command, {num}!") + @bot.slash_command() @discord.default_permissions( administrator=True, @@ -41,10 +46,14 @@ async def global_command(ctx: discord.ApplicationContext, num: int): # Takes on async def admin_only(ctx: discord.ApplicationContext): await ctx.respond(f"Hello {ctx.author}, you are an administrator.") -util = SlashCommandGroup("util", "utility commands") + +util = SlashCommandGroup("util", "utility commands") + + @util.command() async def ping(ctx: discord.ApplicationContext): - await ctx.respond('pong!') - + await ctx.respond("pong!") + + # To learn how to add descriptions and choices to options, check slash_options.py bot.run(os.getenv("DISCORD_TOKEN")) diff --git a/docs/00_simple_examples/test_connect/bot.py b/docs/00_simple_examples/test_connect/bot.py index 591494b..e7f5700 100644 --- a/docs/00_simple_examples/test_connect/bot.py +++ b/docs/00_simple_examples/test_connect/bot.py @@ -1,26 +1,30 @@ # bot.py +import logging import os import discord from dotenv import load_dotenv load_dotenv() -TOKEN = os.getenv('DISCORD_TOKEN') +TOKEN = os.getenv("DISCORD_TOKEN") # https://discordpy.readthedocs.io/en/stable/logging.html -import logging -logger = logging.getLogger('discord') +logger = logging.getLogger("discord") logger.setLevel(logging.DEBUG) -handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w') -handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s')) +handler = logging.FileHandler(filename="discord.log", encoding="utf-8", mode="w") +handler.setFormatter( + logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s") +) logger.addHandler(handler) client = discord.Client() + @client.event async def on_ready(): - print(f'{client.user} has connected to Discord!') + print(f"{client.user} has connected to Discord!") + if __name__ == "__main__": - client.run(TOKEN) \ No newline at end of file + client.run(TOKEN) diff --git a/src/cogs/fun/futurama.json b/src/cogs/fun/futurama.json index 2409567..3784313 100644 --- a/src/cogs/fun/futurama.json +++ b/src/cogs/fun/futurama.json @@ -344,4 +344,4 @@ "Bender: Life is hilariously cruel.", "Bender: I mean, being a robot's great, but we don't have emotions, and sometimes that makes me very sad. [ Sniffles ]", "Bender: My Story Is A Lot Like Yours, Only More Interesting 'Cause It Involves Robots." -] \ No newline at end of file +] diff --git a/src/cogs/fun/zen_of_python.md b/src/cogs/fun/zen_of_python.md index 048a1a3..634c12b 100644 --- a/src/cogs/fun/zen_of_python.md +++ b/src/cogs/fun/zen_of_python.md @@ -18,4 +18,4 @@ Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. -Namespaces are one honking great idea -- let's do more of those! \ No newline at end of file +Namespaces are one honking great idea -- let's do more of those! diff --git a/src/cogs/meetup/eventList.json b/src/cogs/meetup/eventList.json index eccf086..d481cf8 100644 --- a/src/cogs/meetup/eventList.json +++ b/src/cogs/meetup/eventList.json @@ -1 +1 @@ -[{"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydckbrb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1657753200000, "local_date": "2022-07-13", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 9, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydckbrb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydckblc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1659047400000, "local_date": "2022-07-28", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 3, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydckblc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydclbnb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1660172400000, "local_date": "2022-08-10", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydclbnb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydclbhc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1661466600000, "local_date": "2022-08-25", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 0, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydclbhc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcmbsb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1663196400000, "local_date": "2022-09-14", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcmbsb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydcmbdc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1663885800000, "local_date": "2022-09-22", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 0, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydcmbdc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcnbqb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1665615600000, "local_date": "2022-10-12", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcnbqb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydcnbkc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1666909800000, "local_date": "2022-10-27", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 0, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydcnbkc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcpbmb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1668038400000, "local_date": "2022-11-09", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcpbmb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcqbsb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1671062400000, "local_date": "2022-12-14", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcqbsb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfccbpb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1673481600000, "local_date": "2023-01-11", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfccbpb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcdblb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1675900800000, "local_date": "2023-02-08", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcdblb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcfblb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1678320000000, "local_date": "2023-03-08", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcfblb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcgbqb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1681340400000, "local_date": "2023-04-12", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcgbqb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfchbnb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1683759600000, "local_date": "2023-05-10", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfchbnb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcjbsb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1686783600000, "local_date": "2023-06-14", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcjbsb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfckbqb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1689202800000, "local_date": "2023-07-12", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfckbqb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}] \ No newline at end of file +[{"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydckbrb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1657753200000, "local_date": "2022-07-13", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 9, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydckbrb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydckblc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1659047400000, "local_date": "2022-07-28", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 3, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydckblc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydclbnb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1660172400000, "local_date": "2022-08-10", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydclbnb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydclbhc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1661466600000, "local_date": "2022-08-25", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 0, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydclbhc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcmbsb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1663196400000, "local_date": "2022-09-14", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcmbsb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydcmbdc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1663885800000, "local_date": "2022-09-22", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 0, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydcmbdc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcnbqb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1665615600000, "local_date": "2022-10-12", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcnbqb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1620311240000, "duration": 7200000, "id": "rfnfjsydcnbkc", "name": "Monthly Coding Night", "date_in_series_pattern": false, "status": "upcoming", "time": 1666909800000, "local_date": "2022-10-27", "local_time": "18:30", "updated": 1620311240000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 0, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/rfnfjsydcnbkc/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcpbmb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1668038400000, "local_date": "2022-11-09", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcpbmb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsydcqbsb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1671062400000, "local_date": "2022-12-14", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsydcqbsb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfccbpb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1673481600000, "local_date": "2023-01-11", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfccbpb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcdblb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1675900800000, "local_date": "2023-02-08", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcdblb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcfblb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1678320000000, "local_date": "2023-03-08", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -18000000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcfblb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcgbqb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1681340400000, "local_date": "2023-04-12", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcgbqb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfchbnb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1683759600000, "local_date": "2023-05-10", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfchbnb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfcjbsb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1686783600000, "local_date": "2023-06-14", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfcjbsb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}, {"created": 1652652903000, "duration": 5400000, "id": "nvqcvsyfckbqb", "name": "PyRVA lecture night", "rsvp_limit": 60, "date_in_series_pattern": false, "status": "upcoming", "time": 1689202800000, "local_date": "2023-07-12", "local_time": "19:00", "updated": 1652652903000, "utc_offset": -14400000, "waitlist_count": 0, "yes_rsvp_count": 2, "is_online_event": true, "group": {"created": 1441131051000, "name": "PyRVA", "id": 18889633, "join_mode": "open", "lat": 37.540000915527344, "lon": -77.44000244140625, "urlname": "PyRVAUserGroup", "who": "Pythonistas", "localized_location": "Richmond, VA", "state": "VA", "country": "us", "region": "en_US", "timezone": "US/Eastern"}, "link": "https://www.meetup.com/pyrvausergroup/events/nvqcvsyfckbqb/", "description": "

This is a placeholder event so you know when to plan to be there.

---
PyRVA Meets twice a month. Feel free to come early and ask questions or just hang out. After each meeting, we will generally hang out for a bit and can also answer any questions at that time.

Lecture Night: 2nd Wednesday of the month
We bring speakers in from around the country to teach us something new about Python. You'll be able to ask the speaker(s) any questions you have on the topic.
Let us know if you would like to present at a future meeting! https://forms.gle/q8w3xziArWjud5f67

Coding Night: 4th Thursday of the month
Here you will find the Python challenge problems and projects that we will solve together in small groups. Please contact an organizer if you're interested in proposing a project or topic.

", "visibility": "public", "member_pay_fee": false}] diff --git a/src/cogs/meetup/meetup_rest_api.py b/src/cogs/meetup/meetup_rest_api.py index d9ea031..075050f 100644 --- a/src/cogs/meetup/meetup_rest_api.py +++ b/src/cogs/meetup/meetup_rest_api.py @@ -28,7 +28,10 @@ def _get_upcoming(): print("well where'd you leave it ya dingus?") old_list = open(f"{filepath}", "w+") - ignore_list = ["Monthly online lecture night", "Monthly Coding Night (ONLINE!!!)"] #TODO: might want to parameterize this + ignore_list = [ + "Monthly online lecture night", + "Monthly Coding Night (ONLINE!!!)", + ] # TODO: might want to parameterize this # compare old and new list if new_list != old_list: @@ -44,11 +47,11 @@ def _get_upcoming(): with open(f"{filename}", "w") as f: json.dump(new_list, f) - - #TODO select the events worth posting to discord and return only them + # TODO select the events worth posting to discord and return only them ## Check the channel for Id's / keys of events already posted? - return event_info + return event_info + def _get_next(): response = r.get(_url("events")) @@ -58,6 +61,6 @@ def _get_next(): if __name__ == "__main__": - #_get_upcoming() + # _get_upcoming() print(_get_next()) From bd28c38f9dcdcdcfc05fe25ef3b9e70c23b8cfe5 Mon Sep 17 00:00:00 2001 From: Chris May Date: Mon, 6 Feb 2023 18:30:01 -0500 Subject: [PATCH 3/3] Better Ruff settings --- pyproject.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4720268..00fdc3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,11 +9,11 @@ dependencies = [] [tool.ruff] # Enable Pyflakes `E` and `F` codes by default. -select = ["E", "F", "N"] -ignore = ["E501"] +select = ["ALL"] +ignore = ['ANN', 'D103', 'PTH', 'T20', 'D'] # Allow autofix for all enabled rules (when `--fix`) is provided. -fixable = ["B", "C", "D", "E", "F", "W", "COM"] +fixable = ["ALL"] unfixable = [] # Exclude a variety of commonly ignored directories. @@ -46,7 +46,6 @@ line-length = 88 # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -# Assume Python 3.10. target-version = "py311" [tool.ruff.mccabe]