Skip to content

Latest commit

 

History

History
230 lines (158 loc) · 5.44 KB

File metadata and controls

230 lines (158 loc) · 5.44 KB

Tweet Announcement for Python SDK

Main Tweet (280 characters)

🐍 Introducing the Official Python SDK for OilPriceAPI!

✅ pip install oilpriceapi ✅ Type-safe with Pydantic ✅ Async/await support ✅ 100% test coverage ✅ Production-ready

Get real-time oil & commodity prices in seconds.

📦 https://pypi.org/project/oilpriceapi/https://github.com/OilpriceAPI/python-sdk


Thread Option 1: Technical Deep Dive

Tweet 1/4: 🐍 Introducing the Official Python SDK for OilPriceAPI!

Production-ready client for real-time oil, gas, and commodity price data.

✅ Type hints with Pydantic v2 ✅ Sync & async clients ✅ Comprehensive error handling ✅ 100 tests passing

Install: pip install oilpriceapi

🧵 👇

Tweet 2/4: Getting started is dead simple:

from oilpriceapi import OilPriceAPI

client = OilPriceAPI(api_key="your-key")
price = client.prices.get("BRENT_CRUDE_USD")

print(f"${price.value}/barrel")

That's it. Type-safe, production-ready, zero config.

Tweet 3/4: Need high performance? Built-in async support:

from oilpriceapi import AsyncOilPriceAPI

async with AsyncOilPriceAPI(api_key="key") as client:
    price = await client.prices.get("BRENT_CRUDE_USD")
    df = await price.to_dataframe()

Async context managers, automatic cleanup, pandas integration.

Tweet 4/4: What's inside: • Automatic retry with exponential backoff • Production logging at all decision points • Historical data with pagination • Optional pandas DataFrame support • Comprehensive docs & examples

📦 PyPI: https://pypi.org/project/oilpriceapi/ ⭐ GitHub: https://github.com/OilpriceAPI/python-sdk 📖 Docs: https://www.oilpriceapi.com/developers/python


Thread Option 2: Business Value Focus

Tweet 1/3: 🐍 Official Python SDK for OilPriceAPI is now live!

Build energy trading platforms, price monitoring dashboards, and data analytics pipelines with production-ready infrastructure.

pip install oilpriceapi

Free tier: 100 requests (lifetime) Enterprise: Unlimited

🧵

Tweet 2/3: What makes it production-ready?

✅ 100 passing tests (94 unit + 6 integration) ✅ Full type safety with Pydantic v2 ✅ Async/await for high-throughput apps ✅ Automatic error handling & retries ✅ Logging at every decision point ✅ MIT License

No surprises in production.

Tweet 3/3: Use cases we're seeing:

• Energy trading platforms • Price alert systems • Financial dashboards • Research & analytics • Trading algorithms • Risk management tools

Start building: https://www.oilpriceapi.com/developers/python

Free API key: https://www.oilpriceapi.com/auth/signup


Simple Announcement (for LinkedIn/other platforms)

Headline: Official Python SDK for OilPriceAPI Now Available

Body: We're excited to announce the release of our official Python SDK for OilPriceAPI v1.0.0!

What's Included: • Production-ready sync and async clients • Type-safe models with Pydantic v2 • Comprehensive error handling with automatic retries • 100 passing tests with 64% coverage • Optional pandas DataFrame support • Full documentation and examples

Getting Started:

pip install oilpriceapi
from oilpriceapi import OilPriceAPI

client = OilPriceAPI(api_key="your-api-key")
price = client.prices.get("BRENT_CRUDE_USD")
print(f"${price.value}/barrel")

Links: • PyPI: https://pypi.org/project/oilpriceapi/ • GitHub: https://github.com/OilpriceAPI/python-sdk • Documentation: https://www.oilpriceapi.com/developers/python • Get API Key: https://www.oilpriceapi.com/auth/signup

Perfect for energy trading platforms, price monitoring systems, financial dashboards, and data analytics pipelines.

Free tier includes 100 requests (lifetime). Enterprise plans available for unlimited access.


Short Versions

Version 1 (X/Twitter - 280 chars): 🐍 Official Python SDK for OilPriceAPI is live!

pip install oilpriceapi

✅ Type-safe ✅ Async support ✅ 100% tested ✅ Production-ready

Real-time oil & commodity prices in seconds.

https://github.com/OilpriceAPI/python-sdk

Version 2 (X/Twitter - focus on developer experience): Just shipped: Python SDK for OilPriceAPI 🎉

3 lines to get Brent crude prices:

from oilpriceapi import OilPriceAPI
client = OilPriceAPI(api_key="key")
print(client.prices.get("BRENT_CRUDE_USD").value)

Type-safe, async-ready, production-tested.

pip install oilpriceapi

Version 3 (X/Twitter - technical audience): New Python SDK: Built the right way.

• Pydantic v2 for type safety • httpx for async/sync support • Exponential backoff retry logic • Production logging throughout • 100 tests passing

pip install oilpriceapi

https://github.com/OilpriceAPI/python-sdk


Recommended Posting Strategy

  1. Day 1: Post main announcement (Thread Option 1 or 2)
  2. Day 2: Share code example gif/screenshot
  3. Day 3: Share pandas DataFrame integration example
  4. Day 4: Share async performance comparison
  5. Day 5: Share customer testimonial (once we have one)

Hashtags to Consider

#Python #OpenSource #API #EnergyTrading #CommodityPrices #DevTools #PythonDev #DataScience #FinTech #EnergyData

Communities to Share In

  • r/Python
  • r/learnpython
  • r/programming
  • Hacker News (Show HN: Official Python SDK for Oil Price API)
  • Python Discord servers
  • Dev.to
  • Hashnode
  • Python Weekly newsletter submission

Note: Once package is live on PyPI, verify the PyPI link works before tweeting!