# Aeon Cloud Client
## Install Aeon Cloud
The Aeon Cloud client is hosted on Artifactory and can be installed via Pip.
```bash
pip install aeoncloud -i <artifactory_url_here>
```
## Run a Blocking Session Client
Note, settings can be any Aeon property used by Aeon.
```python
from aeoncloud import get_session_factory
aeon = get_session_factory()
session = aeon.get_session(settings={
'settings': {
'aeon.platform.http.url': 'http://localhost:8081/api/v1/',
'aeon.browser': 'Chrome',
'aeon.environment': 'launch-web.apps.mia.ulti.io',
'aeon.protocol': 'https',
'aeon.timeout': 10,
'aeon.wait_for_ajax_responses': True,
}
})
session.execute_command('GoToUrlCommand', ['https://google.com'])
session.quit_session()
```
## Run an Async Session Client
A reactor loop of some type is required to run async Python code, in addtion to Python 3.5 and above.
In the example below retrieving an existing session is also demoed.
```python
import asyncio
from aeoncloud import get_session_factory
async def do():
# Setup Session
aeon = get_session_factory()
session = await aeon.get_async_session(settings={
'settings': {
'aeon.platform.http.url': 'http://localhost:8081/api/v1/',
'aeon.browser': 'Chrome',
'aeon.environment': 'launch-web.apps.mia.ulti.io',
'aeon.protocol': 'https',
'aeon.timeout': 10,
'aeon.wait_for_ajax_responses': True,
}
})
# Execute command on session
await session.execute_command('GoToUrlCommand', ['https://google.com'])
# Setup the session again
session = await aeon.get_async_session(settings={
'settings': {
'aeon.platform.http.url': 'http://localhost:8081/api/v1/',
'aeon.browser': 'Chrome',
'aeon.environment': 'launch-web.apps.mia.ulti.io',
'aeon.protocol': 'https',
'aeon.timeout': 10,
'aeon.wait_for_ajax_responses': True,
'aeon.platform.session_id': session.session_id
},
})
# Execute command on restored session
await session.execute_command('GoToUrlCommand', ['https://microsoft.com'])
# Kill session
await session.quit_session()
loop = asyncio.get_event_loop()
loop.run_until_complete(do())
```
## Install Aeon Cloud
The Aeon Cloud client is hosted on Artifactory and can be installed via Pip.
```bash
pip install aeoncloud -i <artifactory_url_here>
```
## Run a Blocking Session Client
Note, settings can be any Aeon property used by Aeon.
```python
from aeoncloud import get_session_factory
aeon = get_session_factory()
session = aeon.get_session(settings={
'settings': {
'aeon.platform.http.url': 'http://localhost:8081/api/v1/',
'aeon.browser': 'Chrome',
'aeon.environment': 'launch-web.apps.mia.ulti.io',
'aeon.protocol': 'https',
'aeon.timeout': 10,
'aeon.wait_for_ajax_responses': True,
}
})
session.execute_command('GoToUrlCommand', ['https://google.com'])
session.quit_session()
```
## Run an Async Session Client
A reactor loop of some type is required to run async Python code, in addtion to Python 3.5 and above.
In the example below retrieving an existing session is also demoed.
```python
import asyncio
from aeoncloud import get_session_factory
async def do():
# Setup Session
aeon = get_session_factory()
session = await aeon.get_async_session(settings={
'settings': {
'aeon.platform.http.url': 'http://localhost:8081/api/v1/',
'aeon.browser': 'Chrome',
'aeon.environment': 'launch-web.apps.mia.ulti.io',
'aeon.protocol': 'https',
'aeon.timeout': 10,
'aeon.wait_for_ajax_responses': True,
}
})
# Execute command on session
await session.execute_command('GoToUrlCommand', ['https://google.com'])
# Setup the session again
session = await aeon.get_async_session(settings={
'settings': {
'aeon.platform.http.url': 'http://localhost:8081/api/v1/',
'aeon.browser': 'Chrome',
'aeon.environment': 'launch-web.apps.mia.ulti.io',
'aeon.protocol': 'https',
'aeon.timeout': 10,
'aeon.wait_for_ajax_responses': True,
'aeon.platform.session_id': session.session_id
},
})
# Execute command on restored session
await session.execute_command('GoToUrlCommand', ['https://microsoft.com'])
# Kill session
await session.quit_session()
loop = asyncio.get_event_loop()
loop.run_until_complete(do())
```
Release files for aeoncloud 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aeoncloud-0.1.4.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aeoncloud-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.2 kB
Release files / aeoncloud-0.1.4.tar.gz
| Download URL | aeoncloud-0.1.4.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d15496c1215e6bfdda1fde560c24362081e6cdfdbc9c939c4693d82a76bdf5a3
|
|
BLAKE2b-256 checksum How to use checksums |
d40afdde2c707086cdee3042071e2d839964016573f2115b795d8ff00df0be06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/35.0.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.6
|
Release files / aeoncloud-0.1.4-py3-none-any.whl
| Download URL | aeoncloud-0.1.4-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2d900bb7b800a02a60078eade22977f4f3c57d3fdd2edc8d3cda10fce407685
|
|
BLAKE2b-256 checksum How to use checksums |
c41e5fd746cce08cd0a3d4e4b0299d8cde1c03443215bda3e1d53df3df455da5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/35.0.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.6
|