Metadata-Version: 2.1
Name: python-substack
Version: 0.1.8
Summary: A Python wrapper around the Substack API.
Home-page: https://github.com/ma2za/python-substack
License: MIT
Keywords: substack
Author: Paolo Mazza
Author-email: mazzapaolo2019@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: PyYAML (>=6.0,<7.0)
Requires-Dist: python-dotenv (>=0.21.0,<0.22.0)
Requires-Dist: requests (>=2.28.1,<3.0.0)
Project-URL: Repository, https://github.com/ma2za/python-substack
Description-Content-Type: text/markdown

# Python Substack

# Introduction

This is an unofficial library providing a Python interface for [Substack](https://substack.com/).
I am in no way affiliated with Substack. It works with
Python versions from 3.7+.

# Installation

You can install python-substack using:

    $ pip install python-substack

# Usage

Set the following environment variables by creating a **.env** file:

    PUBLICATION_URL=https://ma2za.substack.com
    EMAIL=
    PASSWORD=
    USER_ID=

To discover the USER_ID go to your public profile page,
in the URL bar of the browser you find the substack address 
followed by your USER_ID and your username:
https://substack.com/profile/[USER_ID]-[username]


The .env file will be ignored by git but always be careful.

