<commit_before>Autotask Web Services (atws)
===
Features
---
* very easy query writing
* picklist generator
* timestamp conversions are handled inbound and outbound
* returns entities with crud (create, reload, update, delete)
* easier UDF setting/getting (get_udf, set_udf)
* monkey patch your entities to add features you need

Installation
---
The following command should allow pip to download the suds-jurko package from the mercurial repo on bitbucket.
You will need the mercurial clients. (yum install mercurial)
```
pip install --extra-index-url https://testpypi.python.org/pypi 	--process-dependency-links --allow-external suds --trusted-host bitbucket.org atws==0.1.dev11
```

Quickstart
---
This is a sample script showing a simple use case.

First, generate a picklist module for your project.
This will create a file for import that contains picklists from Autotask.
It's useful for moving between development and live, and it also allows for constants completion in your IDE.
It needs updating any time a picklist changes in Autotask.
```
create_picklist_module.py <username> <password> <target_file>
```

Example Usage
----
```python
import atws
import atws_picklists_dev as atvar
''' In SQL this query would be:
SELECT * FROM tickets WHERE 
id > 5667
AND 
(
 Status = 'Complete'
 OR
 IssueType = 'Non Work Issues'
)
'''
query = atws.Query('Tickets')<commit_msg>incrementing version after fix for connect url handling<commit_after>Autotask Web Services (atws)
===
Features
---
* very easy query writing
* picklist generator
* timestamp conversions are handled inbound and outbound
* returns entities with crud (create, reload, update, delete)
* easier UDF setting/getting (get_udf, set_udf)
* monkey patch your entities to add features you need

Installation
---
The following command should allow pip to download the suds-jurko package from the mercurial repo on bitbucket.
You will need the mercurial clients. (yum install mercurial)
```
pip install --extra-index-url https://testpypi.python.org/pypi 	--process-dependency-links --allow-external suds --trusted-host bitbucket.org atws==0.1.dev12
```

Quickstart
---
This is a sample script showing a simple use case.

First, generate a picklist module for your project.
This will create a file for import that contains picklists from Autotask.
It's useful for moving between development and live, and it also allows for constants completion in your IDE.
It needs updating any time a picklist changes in Autotask.
```
create_picklist_module.py <username> <password> <target_file>
```

Example Usage
----
```python
import atws
import atws_picklists_dev as atvar
''' In SQL this query would be:
SELECT * FROM tickets WHERE 
id > 5667
AND 
(
 Status = 'Complete'
 OR
 IssueType = 'Non Work Issues'
)
'''
query = atws.Query('Tickets')
{'fraction_non_alphanumeric': 0.08512160228898426, 'fraction_numerical': 0.005722460658082976, 'mean_word_length': 4.505905511811024, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1608344', 'n_tokens_mistral': 834, 'n_tokens_neox': 789, 'n_words': 348}