<commit_before>lswapi
======

python module to talk to Leaseweb's API


## Installation

Install the module using pip

    pip install lswapi


## Usage

The `lswapi.get_leaseweb_api` function creates an instance of the LeaseWeb Api
object with the `X-Lsw-Auth` key set based on the environment variable
`LSW_API_KEY`:

    >>> import lswapi
    >>> client = lswapi.get_leaseweb_api()
    >>> client.get("/v1/bareMetals")


You can also create an instance manually in the following way:

    >>> from lswapi import LeasewebLegacyAuth
    >>> client = LeasewebLegacyAuth("xx-xx-xx-xx")
    >>> client.get("/v1/bareMetals")


Where `xx-xx-xx-xx` is the API key of your account.


## Contribute

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>Updated the README<commit_after>lswapi (beta)
=============

python module to talk to LeaseWeb's API.

For more information refer to the documentation available at
[http://developer.leaseweb.com]


Installation
------------

Install the module using pip

    pip install lswapi


Usage
-----

The `lswapi.get_leaseweb_api` function creates an instance of the LeaseWeb Api
object with the `X-Lsw-Auth` key. You can provide the api key as an argument
to `get_leaseweb_api`

    $ python
    >>> import lswapi
    >>> client = lswapi.get_leaseweb_api(api_key="<KEY>")
    >>> client.get("/v1/bareMetals")


or as an environment variable `LSW_API_KEY`:

    $ LSW_API_KEY=<KEY>x python
    >>> import lswapi
    >>> client = lswapi.get_leaseweb_api()
    >>> client.get("/v1/bareMetals")


Contribute
----------

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.12487205731832139, 'fraction_numerical': 0.007164790174002047, 'mean_word_length': 3.578454332552693, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6551115', 'n_tokens_mistral': 653, 'n_tokens_neox': 618, 'n_words': 221}