Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Data synchronization using PyMySql and Websockets library #2

Merged
merged 25 commits into from
Feb 1, 2022
Merged

Conversation

Ecss11
Copy link
Member

@Ecss11 Ecss11 commented Jan 30, 2022

Description

Connect and subscribe to the Planetary API using Websockets, then upload to a database using PyMySql.

How Has This Been Tested?

20 minute stability test.

To Reproduce Steps to reproduce the test:

  1. Set up the runtime environment.
  2. Run the update_database.py for 20 minute.

Test Configuration:

  • Hardware: I5-11400 @ 2.60GHz, 16 GB 3200 MHz
  • SDK: Python 3.9

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@Ecss11 Ecss11 requested review from yinxuea and a team January 30, 2022 09:12
@Ecss11 Ecss11 self-assigned this Jan 30, 2022
@Ecss11 Ecss11 added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers labels Jan 30, 2022
@Ecss11 Ecss11 added this to the first stable release milestone Jan 30, 2022
@@ -1,18 +1,12 @@
import asyncio
import json
import logging
import logging.config
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like import logging.config will automatically import logging methods.

Copy link
Member Author

@Ecss11 Ecss11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code currently looks fine, with some formatting bugs fixed.

Copy link
Member Author

@Ecss11 Ecss11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem found.

@Ecss11 Ecss11 merged commit 957141e into master Feb 1, 2022
@Ecss11 Ecss11 deleted the develop branch February 12, 2022 04:33
@Ecss11 Ecss11 restored the develop branch February 18, 2022 23:57
@Ecss11 Ecss11 deleted the develop branch February 21, 2022 22:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant