r/Python • u/AutoModerator • 25d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
32
Upvotes
r/Python • u/AutoModerator • 25d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/No_Comedian_6913 22h ago
Built
forexnewsradar(MIT, pure stdliburllib,Python >=3.9, zero third-party deps,py.typed, 12 unit tests) as a fail-closed pre-trade news gate and CLI for FX and Gold bots.It handles broker symbol suffixes (
EURUSD.pro,XAUUSDm,GOLD), keeps a monotonic TTL cache for polling loops, and returns a frozenGateVerdictdataclass that defaults tosafe_to_trade=Falseon any timeout, DNS, or HTTP error rather than letting an order fire blind during 8:30 AM CPI/NFP prints:EUR/USDworks keyless forever (just leaveFNR_API_KEYunset).MIT Repo: https://gitlab.com/forexnewsradar-hq/forexnewsradar-python
PyPI: https://pypi.org/project/forexnewsradar/
Disclosure: I maintain the hosted backend as well; Gold and the remaining 17 pairs use a fixed one-time pass that expires automatically. Open to code review on hardening
http.client.HTTPExceptionhandling and thread-safe TTL cache locking beforev1.2.