This is the python library for M3O.
pip install m3o-py
You import API's like this:
from m3o_py.api import apiService
from asyncio import run
api = apiSerivce("<m3o_api_key>")
async def main():
await api.upload("params")
run(main())
If you'd use the weather API, you'd do this:
from m3o_py.weather import WeatherService
weather = WeatherService("<m3o_api_key>")
async def rpint_weather():
res = await weather.now(location="Oberhausen")
print(f"In {res.location} are {res.temp_c}°C and it feels like {res.feels_like_c}°C. ")
- Set your environment variables:
export M3O_API_KEY=<your_api_key>
- Run the tests:
poetry run pytest tests --asyncio-mode=strict
- Cache Coverage: 75%
- Contacts Coverage: 90%
- Database Coverage: 75%
- Answers Coverage: 95%
- Jokes Coverage: 92%
- Address NO TEST SINCE IT'S NOT FREE
- IDgen Coverage: 90%
- IP2Geo Coverage: 96%
- Twitter Coverage: 92%
- Weather Coverage: 97%
- Users NO TEST SINCE I AM LAZY
- Apps
- Avatar
- Carbon
- Chat
- Comments
- Crypto
- Currency
- Emoji
- EV Chargers
- Events
- Files
- Forex
- Functions
- Geocoding
- GIFs
- Goole
- Hello World
- Holidays
- Image
- Lists
- Location
- Meme Generator
- Minecraft
- Movies
- Message Queue
- News
- NFTs
- Notes
- OTP
- Ping
- Places
- Postcode
- Prayer
- QR Codes
- Quran
- Routes
- RSS
- Search
- Sentiment
- SMS
- Space
- Spam
- Stocks
- Stream
- Sunnah
- Thumbnail
- Time
- Translate
- URLs
- Vehicle
- YouTube