postloop
Plan, check and learn from your community's social media posts.
Community organizers plan social media posts in a spreadsheet, then post them by hand. Afterwards nobody goes back to update the sheet: statuses stay at "drafting", the "published at" column stays empty, and nobody notices the post that went out twice or the one that never went out. And next year, nobody remembers which posts worked. postloop does those boring parts, and closes the loop: plan, post, learn, plan again.
| You have | Run | You get |
|---|---|---|
| a post calendar and your platform exports | postloop --plan ... --posts ... |
what went out, what didn't, what the sheet got wrong |
| only your platform exports | postloop report --posts ... |
what worked: top posts, ads vs organic, gaps |
| last year's exports and a new event date | postloop bootstrap --posts ... |
a draft calendar for this year |
Check the calendar
You need two things you already have:
- your post calendar: any spreadsheet with a date and a title per post
- your platform exports: the CSV/Excel files Meta Business Suite and LinkedIn let you download. No API keys, no data pipeline.
pip install "postloop[xlsx]"
postloop --plan calendar.xlsx --posts facebook.csv instagram.csv linkedin.xls
Calendar: 54 planned posts (date: 'Date', title: 'Post')
Posts: facebook.csv → Meta Business Suite (Facebook), 45 posts
Posts: instagram.csv → Meta Business Suite (Instagram), 38 posts
📅 Post calendar check
Matched 36 published posts
✍️ Cells that can be filled in: 70
🟡 Posted, but status not updated
• 09/02 Conference guide (Drafting → facebook 09-02 21:00)
🔴 Date passed, no post found
• 10/19 Sprints sponsor thanks
❓ Posts missing from the calendar
• 09/15 [facebook] Sponsor spotlight ...
♊ Possibly posted twice
• 09/13 20:31 [facebook] Only 2 days left for tickets!
It fills in facts (when each post went out, and its link) and never makes decisions: a status that looks out of date is reported, not changed.
Your calendar
Only a date and a title column are required. postloop finds columns by
name, in English or Chinese (Date/日期/預計發布日, Title/Post/發文主題
...), and skips notes above the header. Optional columns it understands:
| What | Recognized as |
|---|---|
| where it is posted | checkbox columns named FB, IG, LinkedIn, X, Threads... or one Platforms column like FB, IG |
| status | Status / 狀態 |
| published at | Published at / 實際發佈日期與時間 (postloop fills it in) |
| link | URL / Link / 網址 (postloop fills it in) |
No calendar yet? Start from templates/post-calendar.csv.
Different column names? --date-col "When" --title-col "What".
Your posts
| Platform | Where to download |
|---|---|
| Meta Business Suite → Insights → Content → Export data → Facebook | |
| the same, choose Instagram | |
| your page → Analytics → Content → Export | |
| anything else | a CSV with platform, created_at, message, reactions (+ comments, shares, url) |
The format is detected automatically. Meta allows 92 days per export; pass as many files as you like, overlapping posts are counted once.
Gotcha we hit: Meta writes publish times in US Pacific time, whatever your page's timezone. A post published at 10:10 in Taipei appears as 19:10 the evening before. postloop converts it; set your own zone with
--timezone.
Writing results back
postloop --plan calendar.xlsx --posts fb.csv --write # saves calendar_filled.xlsx
postloop --plan calendar.xlsx --posts fb.csv --report out.csv # one line per post, all platforms
With a Google Sheet (pip install "postloop[sheets]"), --sheet-id ID --write
fills the live sheet, and --discord posts the summary to $DISCORD_WEBHOOK.
Run both every morning with GitHub Actions: see
examples/pycontw/daily-check.yml.
No calendar yet?
Start from what you already posted:
postloop report --posts facebook.csv instagram.csv --timezone Asia/Seoul
For each platform: the typical post (median, so one viral post doesn't skew it),
the top posts by organic views (Meta exports say how many views came from
ads), boosted posts, post types, posts per month and the longest stretches with
no posts. It saves post_report.md and a CSV with every post.
Add --html to also save post_report.html: the same report as one page with
charts, to send to your team. It is a single file with no scripts and nothing
loaded from the internet, so it opens offline and is safe to attach or share.
Plan next year from last year
A yearly event posts much the same things each year. Turn last year's posts into a draft calendar:
postloop bootstrap --posts facebook.csv instagram.csv --timezone Asia/Seoul \
--event-date 2026-10-17 --next-event 2027-10-16
Each post is placed the same number of days before the next event, on the same weekday, with the year in its title updated and last year's numbers next to it. A post that went out on several platforms becomes one row. The draft is a starting point: if a deadline moved this year (early bird, proposals), move those rows by hand.
How matching works
Dates alone are unreliable: posts go out late, and several share a day. Each calendar row and post pair gets a score from:
- text similarity: character pairs of the title found in the start of the post, weighted by rarity, so "PyCon" (in every post) counts little and a speaker's name counts a lot. Works for Chinese and English without a tokenizer.
- sequence numbers: "Part 2", "#2", "Day 2" and "第二天" must agree
- lateness: a small penalty per day late
Pairs are assigned best-first, one post per row. Low-confidence matches are listed for a human to check.
Teach postloop your community's words in a config file (--config postloop.toml):
[synonyms]
shorts = "interview" # the calendar says "shorts", the post says "interview"
On PyCon Taiwan's 2026 calendar it matched 32 of 36 Facebook posts with no configuration, and 35 of 36 with no wrong matches once given ten synonyms.
Examples
examples/pycontw/ is how PyCon Taiwan runs it every
morning: their config, their GitHub Actions workflow, and how to feed postloop
from your own database instead of from exports.
Development
pip install -e ".[dev]"
pytest
Releases are published to PyPI by .github/workflows/publish.yml when a GitHub
release is created.
Metadata
Release files for postloop 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| postloop-0.2.0.tar.gz | 45.0 kB | With provenance | Details for postloop-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| postloop-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for postloop-0.2.0-py3-none-any.whl |
Total release size: 86.4 kB
Release files / postloop-0.2.0.tar.gz
| Download URL | postloop-0.2.0.tar.gz |
|---|---|
| Size | 45.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68f352001e18f645c786546a6b9a391f62172cd5077cc0d3ccd13c35b3d37101
|
|
BLAKE2b-256 checksum How to use checksums |
f0263d258d679a20f9a358cf32ed6266d96e8fcdf4fdfe751ecbeeed2c059d1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / postloop-0.2.0-py3-none-any.whl
| Download URL | postloop-0.2.0-py3-none-any.whl |
|---|---|
| Size | 41.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6917ac8a24eb27f5f4d8c063ca42f9f5d719ac5d2487d1d40d66aca7eba6aa6
|
|
BLAKE2b-256 checksum How to use checksums |
0603fc895bf5e805cc4d98965217d784d1fe96edbc32a6585ecc63a5a8b848ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for postloop 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for postloop-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.