paypal in python

Get PayPal Payment in Python

PayPal is one of the most popular payment solution for online business. In the PHP era, we can find lots of Paypal payment gateway, implemented by PHP, hosted on WordPress or Joomla. For example, my PayPal Digital Goods Express Checkout tools which was created several years ago. To be surprised, it still works properly and helps lots of people open their business online.

In my last post, Make Money within 4 Steps, I demonstracted how to use the latest PayPal REST API in the website. All these tools and toturials are all in PHP. In this article, I will use my Python skills to expose the possibility of Paypal in Python. Now let’s get it started.

Read more

Write Log in File and Print in Terminal in Python

Logging in Python is an old topic. It is quite important to check and debug Python programe, especially when there are something going wrong. In Linux, logging files are usually located in a special folder and rotated basing on time. Here is a powerful logging tool, loguru, a Python 3rd library. In this article, I will not cover it, but I recommend it if you are already familiar with the original Python logging system. Here, I will share some usual practices in my past Python projects.

Read more
Docker Tips for Beginners

Docker Tips for Beginners

This is my first time to write a post for docker, and I hope it wouldn’t be the last. The reason why I write this docker tutorial is because of a small project. Yes, a small project which need to be deployed by docker. It takes me 6 hours to learn docker and use it to deploy Python project and Java project. Besides that, the project need to read a configuration file from a fixed location in the file system (inside Docker envoriment). Basing on the deploy envorinment, the configuration file is different. For example, configuration file for development and production is totally different. For security reason and easy management, all configuration files are hosted on a remote server. So when running the docker, we shall download the corresponding configuration file from the remote server by passing the arguments in the docker command line. Here I will not repeat what’s the Docker and what benefits we can get from Docker, as you can get all the information from Docker homepage. In this post, I will describe how to make a docker image which can expect outside arguments. And this time, I will host all the source code on my public git. Hope it will help you to solve your problem within 6 minutes.
Read more