semvec/pypi-packages huggingface dataset:
pyncclient-ext 0.1.2
Python extended Nextcloud Client
License: MIT
Requires Python: >=3.6

# Python extended Nextcloud Client

This library is available through `pip` as [pyncclient-ext](https://pypi.org/project/pyncclient-ext/) .
It is a subclass of [pyncclient](https://pypi.org/project/pyncclient/) library,
implementing chunked upload from a stream and partial system tag management and assignment.
sendbox-sdk 0.1.1
SDK for Mail.ru Sendbox rest api
License: MIT

sendbox_sdk
===========

.. image:: https://img.shields.io/pypi/v/sendbox_sdk.svg
    :target: https://pypi.python.org/pypi/sendbox_sdk
    :alt: Latest PyPI version


SDK for Mail.ru Sendbox rest api

Usage
-----

.. code-block:: python

    from sendbox_sdk.api import SendBoxApi

    sendbox_api = SendBoxApi("sendbox_account_id", "sendbox_account_secret")
    sendbox_api.send_templated_email(
        context={
            'template_parameter1': 'test',
            'template_parameter2': 'test',
        },
        from_email='test@example.come',
        from_name="Example",
        to_email='user@example.com',
        to_name="Username",
        subject="Subject"
    )


Installation
------------

Requirements
^^^^^^^^^^^^
requests

Compatibility
-------------

Licence
-------
MIT

Authors
-------

`sendbox_sdk` was written by `Yasha Mikhoparkin <ja.mix@mail.ru>`_.
djhacker 0.2.3
Django-Hacker: customize default django forms
License: MIT
Requires Python: >=3.7
Keywords: django forms

Django-Hacker: customize default django forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Basic usage
===========

Install with ``pip install djhacker`` and then:

.. code-block:: python

    import djhacker

    djhacker.formfield(
        YourModel.your_field,
        form_class=YourFormField,
        custom_form_field_kwarg='something',
    )

This will make any Django ModelForm render a
``YourFormField(custom_form_field_kwarg='something')`` by default, plus
whatever other kwargs it wants to add, you won't have to use any specific model
form, this will work natively in the admin for instance.

.. note:: `form_class` is optionnal, you may as well just pass kwargs and not
          change the default form class for a form field.

Custom formfield callback
=========================

You can register custom form field for model field types:

.. code-block:: python

    @djhacker.register(models.ForeignKey)
    def custom_fk_formfield(model_field, **kwargs):
        return dict(
            form_class=YourFormField,
            custom_form_field_kwarg=something,
            **kwargs,
        )

    # you don't need to pass extra arguments anymore for ForeignKey fields:
    djhacker.formfield(YourModel.some_fk, queryset=Some.objects.all())

Widget Script attributes
========================

Another thing Django is not doing anytime soon is `letting you customize script
tags <https://code.djangoproject.com/ticket/33336>`_. Which means there's no
easy way to combine Widget.Media.js and any of the nice new script tag
attributes, including, but not limited to:

- ``async``, ``defer``: good to control when your script is loaded
- ``type="module"``: to load a script as an EcmaScript Module (ESM) and use
  imports

Let's have this anyway, first patch Django's Media render_js:

.. code-block:: python

    import djhacker
    djhacker.media_script_attributes()

Then, let's customize a script tag:

.. code-block:: python

    class YourWidget(forms.Widget):
        class Media:
            js = [
                'your/script.js[type=module][defer=true]',
            ]

It will render as such:

.. code-block:: python

    <script src="/static/your/script.js" type="module" defer="true"></script>

Upgrade
=======

To v0.2.x
---------

Registered callbacks now return a simple dict with the form field class in
form_class.

.. code-block:: python

    @djhacker.register(models.ForeignKey)
    def custom_fk_formfield(model_field, **kwargs):
        return YourFormField, {
            'custom_form_field_kwarg': 'something',
            **kwargs,
        )

Becomes:

.. code-block:: python

    @djhacker.register(models.ForeignKey)
    def custom_fk_formfield(model_field, **kwargs):
        return dict(
            form_class=YourFormField,
            custom_form_field_kwarg=something,
            **kwargs,
        )
carehttp 0.3.11
Warp Requests with Retrying, so some important requests could easily retry when encounter error
License: MIT
Requires Python: >=3.6.0


📦 CareHttp
=======================

CareHttp cares your data.

It wraps from Requests and Retrying, retry several times when you encounter requests error.

Installation
-----

```bash
pip3 install carehttp
```

Usage
-----
example1 print the url:
```python
from carehttp import Carehttp

r = Carehttp().get(url='https://stackoverflow.com/', timeout=0.1)
print(r.text)

r = Carehttp().post('https://stackoverflow.com/', data={}, json={}, timeout=1)
print(r.text)
```
-----
example2 print a title:
```python
s = requests.Session()
r = Carehttp(session=s, mark='title').get('https://stackoverflow.com/', timeout=1)
print(r.text)
```
-----
example3 custom retry setting:
```python
r = Carehttp(mark='title', tries=10, delay=1, max_delay=60).get('https://stackoverflow.com/', timeout=1)
print(r.text)
```

How to use carehttp
--------------

- It's a combination from [Requests] and [Retrying], only add a param **mark**
- Request part is exactly the same params with [Requests].
- Retry part termed params. Usage more like [Retry].
- If ignore **mark**, error displays the url, or else display the text of **mark**.

What else
--------------

-   More functions is planning.

License
-------

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.

  [Retrying]: https://github.com/rholder/retrying
  [Retry]: https://github.com/invl/retry
  [Requests]: https://github.com/psf/requests