Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 513 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 513 Bytes

SimpleFIN4PY

This library helps you access simpelFIN with python

"""Example file."""
import asyncio
from dotenv import load_dotenv
import os

from simplefin4py import SimpleFin

# Read info from .env file
load_dotenv()

access_url: str = os.getenv("ACCESS_URL", "")


async def main() -> None:
    """Main function."""
    sf: SimpleFin = SimpleFin(access_url)
    data = await sf.fetch_data()
    print(data)


# Run the async main function
if __name__ == "__main__":
    asyncio.run(main())