Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joeri-abbo/python-mollie-customers-checker
Check Mollie customers against a SQL database
https://github.com/joeri-abbo/python-mollie-customers-checker
mollie python sql
Last synced: about 2 months ago
JSON representation
Check Mollie customers against a SQL database
- Host: GitHub
- URL: https://github.com/joeri-abbo/python-mollie-customers-checker
- Owner: Joeri-Abbo
- Created: 2023-03-21T23:11:53.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T22:03:34.000Z (about 1 year ago)
- Last Synced: 2023-10-20T06:53:32.514Z (about 1 year ago)
- Topics: mollie, python, sql
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## README for Python code
This Python code retrieves customers from Mollie's API and compares them to the customers in a MySQL database. If a customer exists in Mollie's API but not in the MySQL database, it prints the customer details and inserts the customer into the MySQL database.
### Requirements
This code requires the following Python packages:requests
mysql-connector-python
pyyaml
Make sure these packages are installed before running the code.### Configuration
The configuration values for the Mollie API key, MySQL database host, user, password, and database name are stored in a YAML file called config.yaml. Modify the values in this file to match your own configuration before running the code.### Execution
To run the code, simply execute the Python script. The code will retrieve all customers from Mollie's API and compare them to the customers in the MySQL database. If a customer is not found in the MySQL database, the code will print the customer details and insert the customer into the MySQL database.### Output
The output of the code will be a list of new customers (i.e., customers found in Mollie's API but not in the MySQL database). The output will be printed to the console.Note that the code is currently set up to only print the new customer details to the console. If you want to insert the new customers into the MySQL database, uncomment the appropriate lines of code.