Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebv committed Mar 11, 2024
1 parent 4206974 commit 78699d6
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,46 @@

# About

Asynchronous Python client for the Salesforce REST API.
**Documentation:** https://georgebv.github.io/aiosalesforce/

**License:** [MIT](https://opensource.org/licenses/MIT)

**aiosalesforce** is an asynchronous Python client for the Salesforce REST API.

# Installation

Get the latest version from PyPI:

```shell
pip install aiosalesforce
```

# Quickstart

```python
import asyncio

from aiosalesforce import Salesforce
from aiosalesforce.auth import SoapLogin
from httpx import AsyncClient

auth = SoapLogin(
username="your-username",
password="your-password",
security_token="your-security-token",
)

async def main():
async with AsyncClient() as client:
salesforce = Salesforce(
client,
base_url="https://your-instance.my.salesforce.com",
auth=auth,
)
async for record in salesforce.query("SELECT Id, Name FROM Account"):
print(record)


if __name__ == "__main__":
asyncio.run(main())
```

0 comments on commit 78699d6

Please sign in to comment.