ncrocfer: Yep, it's ok for me :

```python
In [1]: import ovh

In [2]: ovh.Client().get('/hosting/web/ncrocfer.ovh/ovhConfig', historical=False)
Out[2]: [1779827]
```
Thanks  :+1:

diff --git a/ovh/client.py b/ovh/client.py
index fe989cf..82db162 100644
--- a/ovh/client.py
+++ b/ovh/client.py
@@ -289,14 +289,24 @@ class Client(object):
         can be prefixed with an underscore. For example, ``from`` argument of
         ``POST /email/domain/{domain}/redirection`` may be replaced by ``_from``
 
+        This function also handles Python booleans which should be serialized
+        using solely lowercase to be recognized by the API.
+
         :param dict kwargs: input kwargs
         :return dict: filtered kawrgs
         """
         arguments = {}
 
         for k, v in kwargs.items():
+            # Handle Python keywork collision
             if k[0] == '_' and k[1:] in keyword.kwlist:
                 k = k[1:]
+
+            # Handle Booleans
+            if isinstance(v, bool):
+                v = str(v).lower()
+
+            # Commit
             arguments[k] = v
 
         return arguments

API raises BadParameterError for boolean arguments
Hello,

When an API call requires a boolean argument, we send it as `True` or `False` (valid Python booleans) but the API raises `BadParametersError` because it waits for a string (`'true'` or `'false'`) :

```python
In [1]: import ovh

In [2]: client = ovh.Client()

In [3]: client.get('/hosting/web/ncrocfer.ovh/ovhConfig', historical=False)
---------------------------------------------------------------------------
BadParametersError                        Traceback (most recent call last)
<ipython-input-3-b9140291291d> in <module>()
----> 1 client.get('/hosting/web/ncrocfer.ovh/ovhConfig', historical=False)

/home/ncrocfer/.virtualenvs/ovh/lib/python3.4/site-packages/ovh/client.py in get(self, _target, _need_auth, **kwargs)
    317                 _target = '%s?%s' % (_target, query_string)
    318 
--> 319         return self.call('GET', _target, None, _need_auth)
    320 
    321     def put(self, _target, _need_auth=True, **kwargs):

/home/ncrocfer/.virtualenvs/ovh/lib/python3.4/site-packages/ovh/client.py in call(self, method, path, data, need_auth)
    446             raise ResourceNotFoundError(json_result.get('message'))
    447         elif status == 400:
--> 448             raise BadParametersError(json_result.get('message'))
    449         elif status == 409:
    450             raise ResourceConflictError(json_result.get('message'))

BadParametersError: [historical] Given data (False) is not valid for type boolean

In [4]: client.get('/hosting/web/ncrocfer.ovh/ovhConfig', historical='false')
Out[4]: [1779827]
```

Is it possible to translate automatically the boolean argument to be API compatible ?
Thanks.
diff --git a/tests/test_client.py b/tests/test_client.py
index ddea110..66b300a 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -185,6 +185,12 @@ class testClient(unittest.TestCase):
         self.assertEqual(m_call.return_value, api.get(FAKE_URL+'?query=string', param="test"))
         m_call.assert_called_once_with('GET', FAKE_URL+'?query=string&param=test', None, True)
 
+        # boolean arguments
+        m_call.reset_mock()
+        api = Client(ENDPOINT, APPLICATION_KEY, APPLICATION_SECRET, CONSUMER_KEY)
+        self.assertEqual(m_call.return_value, api.get(FAKE_URL+'?query=string', checkbox=True))
+        m_call.assert_called_once_with('GET', FAKE_URL+'?query=string&checkbox=true', None, True)
+
         # keyword calling convention
         m_call.reset_mock()
         api = Client(ENDPOINT, APPLICATION_KEY, APPLICATION_SECRET, CONSUMER_KEY)

pip install -e .
parse_log_pytest
requirements.txt
pytest
3.9
requirements-dev.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==3.7.1
coveralls==0.4.2
docopt==0.6.2
docutils==0.21.2
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
Jinja2==3.1.6
MarkupSafe==3.0.2
mock==1.0.1
nose==1.3.3
ordereddict==1.0
-e git+https://github.com/ovh/python-ovh.git@ae2981b26fce2641a9bae5af68a3d5043fdd8b46#egg=ovh
packaging==24.2
pluggy==1.5.0
Pygments==2.19.1
pytest==8.3.5
PyYAML==6.0.2
requests==2.32.3
Sphinx==1.2.2
tomli==2.2.1
urllib3==2.3.0
yanc==0.2.4

name: python-ovh
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - coverage==3.7.1
      - coveralls==0.4.2
      - docopt==0.6.2
      - docutils==0.21.2
      - exceptiongroup==1.2.2
      - idna==3.10
      - iniconfig==2.1.0
      - jinja2==3.1.6
      - markupsafe==3.0.2
      - mock==1.0.1
      - nose==1.3.3
      - ordereddict==1.0
      - packaging==24.2
      - pluggy==1.5.0
      - pygments==2.19.1
      - pytest==8.3.5
      - pyyaml==6.0.2
      - requests==2.32.3
      - sphinx==1.2.2
      - tomli==2.2.1
      - urllib3==2.3.0
      - yanc==0.2.4
prefix: /opt/conda/envs/python-ovh

tests/test_client.py::testClient::test_get
tests/test_client.py::testClient::test_endpoints tests/test_client.py::testClient::test_init_from_custom_config
tests/test_client.py::testClient::test__canonicalize_kwargs tests/test_client.py::testClient::test_call_no_sign tests/test_client.py::testClient::test_call_signature tests/test_client.py::testClient::test_delete tests/test_client.py::testClient::test_init tests/test_client.py::testClient::test_init_from_config tests/test_client.py::testClient::test_new_consumer_key_request tests/test_client.py::testClient::test_post tests/test_client.py::testClient::test_put tests/test_client.py::testClient::test_request_consumerkey tests/test_client.py::testClient::test_time_delta
ovh/client.py
ovh/client.py