main.py 692 B

1234567891011121314151617181920212223
  1. from credentials import Credentials
  2. from acumatica_odata_client import AcumaticaODataClient
  3. if __name__ == "__main__":
  4. # 🔧 Replace with your actual OData endpoint
  5. odata_url = "https://acumatica.conciseit.net/Odata/Project%20UDF%20Example"
  6. creds = Credentials()
  7. client = AcumaticaODataClient(
  8. base_url=odata_url,
  9. username=creds.username,
  10. password=creds.password,
  11. page_size=500, # Adjustable page size
  12. max_workers=6 # Adjustable thread count
  13. )
  14. records = client.fetch_all()
  15. print(f"\n✅ Total records retrieved: {len(records)}\n")
  16. for i, record in enumerate(records, 1):
  17. print(f"[{i}] {record}")