https://github.com/govtechsg/python-setup-cloudflare
Scripts and instructions for setting up Python projects in Cloudflare Zero Trust environments
https://github.com/govtechsg/python-setup-cloudflare
Last synced: 15 days ago
JSON representation
Scripts and instructions for setting up Python projects in Cloudflare Zero Trust environments
- Host: GitHub
- URL: https://github.com/govtechsg/python-setup-cloudflare
- Owner: GovTechSG
- License: mit
- Created: 2024-02-16T02:52:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T04:06:50.000Z (over 2 years ago)
- Last Synced: 2025-01-03T03:12:51.572Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 1.05 MB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-setup-cloudflare
Scripts and instructions for setting up any Python project that requires http requests in Cloudflare Zero Trust environment.

## One-time Setup
For most Python Projects.
### macOS
Run this command in terminal as a `non-root` user. For `virtualenv`s or poetry environments, you need to configure each of them separately.
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/GovTechSG/python-setup-cloudflare/master/install-certificates-for-python-osx.sh)"
```
> **If you want to install `aider-chat`**, the open source AI coding assistant that edits code for you, please use the following script instead:
> ```bash
> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/GovTechSG/python-setup-cloudflare/master/install-aider-osx.sh)"
> ```
### SSL Errors in cURL
If you get an SSL Verification Error from your computer, **and you know what you are doing**, add a `-k` flag to your curl command. There is a chance someone is actually trying to intercept your HTTP connection for pushing malicious payloads!