Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JanCBrammer
JanCBrammer / pubchem.py
Created October 16, 2023 12:29
Download PubChem
"""Download gzipped SDF files from ftp.ncbi.nlm.nih.gov/pubchem/.
https://openbook.rheinwerk-verlag.de/python/34_003.html
https://docs.python.org/3/library/ftplib.html
https://pubchem.ncbi.nlm.nih.gov/docs/downloads#section=From-the-PubChem-FTP-Site
"""
from ftplib import FTP
from ftplib import all_errors as FTPException
import hashlib
@JanCBrammer
JanCBrammer / .devcontainer.json
Last active February 16, 2024 10:31
Python VSCode devcontainer
// https://containers.dev/implementors/json_reference/
// https://hub.docker.com/_/microsoft-vscode-devcontainers
{
"name": "",
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",