Category: Python

  1. Updated

    mitmproxy: proxy any network traffic through your local machine

    Category: DevOps, Python, Web Development

    mitmproxy is a free and open source interactive HTTPS proxy.

  2. Updated

    Integrate with Google Cloud API in Python

    Category: Python, Web Development

    google-cloud, Python idiomatic clients for Google Cloud Platform services. There is an older Python library also officially supported by Google, google-api-python-client, which is in maintenance mode.

  3. Updated

    Pipenv and Pipfile: The officially recommended Python packaging tool

    Category: Python

    You no longer need to use pip and virtualenv separately. Use pipenv instead.

  4. Updated

    Print traceback call stack in Python

    Category: Python

    Print Python stack traces without raising an exception.

  5. Updated

    Find circular imports in Python

    Category: Python

    You could use python -vv to inspect import relations.

  6. Updated

    Dot notation (obj.x.y.z) for nested objects and dictionaries in Python

    Category: Python

    Simple implementations of nested_getattr(obj, attr, default), nested_setattr(obj, attr, val) and nested_dict_get(dictionary, dotted_key).

  7. Updated

    Remotely debug a Python app inside a Docker container in Visual Studio Code

    Category: Python, Web Development

    In this article, we are going to debug a Flask app inside a local Docker container through VS Code's fancy debugger, and simultaneously we are still able to leverage Flask's auto-reloading mechanism. It should apply to other Python apps.

  8. Updated

    MongoDB cookbook: Queries and Aggregations

    Category: Database, JavaScript, Python

    Frequently accessed items are cached in memory, so that MongoDB can provide optimal response time.

  9. Updated

    Run a Celery task at a specific time

    Category: Python, Web Development

    You are able to run any Celery task at a specific time through eta (means "Estimated Time of Arrival") parameter.

  10. Updated

    Timezone in Python: Offset-naive and Offset-aware datetimes

    Category: Python

    You should always store datetimes in UTC and convert to proper timezone on display.