semvec/pypi-packages huggingface dataset:
stringhandling 0.3
Python package for string handling
License: MIT

README.txt

Introduction:- Python package for string handling

Usage:- use pip to install stringhandling. pip install stringhandling after installation you are ready to use the functions in this package.

e.g.,

to extract the words list from a sentence / paragraph, use the function 'get_words_list()'

from stringhandling import strhandle

paragraph = """package to manage sentence or paragraph package to manage sentence or paragraph package to manage sentence or paragraph""" words = []

words = strhandle.get_words_list(paragraph)

Output:- ['package', 'to', 'manage', 'sentence', 'or', 'paragraph', 'package', 'to', 'manage', 'sentence', 'or', 'paragraph', 'package', 'to', 'manage', 'sentence', 'or', 'paragraph']

To see all functions available under a package, type

import <package>

print(dir(package))
django-excel-report 0.0.6
Simplify excel reports from django apps
License: MIT
Requires Python: >=3.7
Keywords: django excel

Quick guide:

Here is defined models for example:
```python
from django.db import models


class MyFiles(models.Model):
    file = models.FileField(upload_to='path/to/upload/')
    description = models.TextField()


class M2MRelated(models.Model):
    field = models.TextField()


class RelatedModel:
    field = models.TextField()


class MyModel:
    field = models.TextField()
    related_model = models.ForeignKey(RelatedModel, models.DO_NOTHING)
    m2m_related = models.ManyToManyField(M2MRelated)
```
How to use BaseReport class:
```python
from django_excel_report import BaseReport


class MyReport(BaseReport):
    model = MyModel
    fields = ["field", "related_model__field", "m2m_related__field"]

def some_task(**kwargs):
    qs = MyModel.objects.filter(**kwargs)
    report = MyReport(queryset=qs)
    file = report.get_django_file()
    instance = MyFiles.objects.create(description='description')
    instance.file.save('report.xlsx', file)
```

BaseReport class provides easy way to generate reports with merged cells for related objects:
<img src="readme_files/report_example.png">
Thingy 0.10.0
Dictionary as an object, that can have different views
License: MIT

======
Thingy
======

.. image:: https://img.shields.io/pypi/v/thingy.svg
   :target: https://pypi.python.org/pypi/Thingy
.. image:: https://img.shields.io/github/license/Refty/thingy.svg
   :target: https://github.com/Refty/thingy/blob/master/LICENSE
.. image:: https://img.shields.io/travis/Refty/thingy.svg
   :target: https://travis-ci.org/Refty/thingy
.. image:: https://img.shields.io/coveralls/Refty/thingy.svg
   :target: https://coveralls.io/github/Refty/thingy
.. image:: https://readthedocs.org/projects/python-thingy/badge
   :target: https://python-thingy.readthedocs.io

|

Dictionaries as objects, that can have different dictionary views!


Install
=======

.. code-block:: sh

   $ pip install thingy


Examples
========

Dictionaries as objects...
--------------------------

.. code-block:: python

   >>> class MyThingy(Thingy)
   ...     @property
   ...     def foobaz(self):
   ...         return self.foo + self.baz

   >>> thingy = MyThingy({"foo": "bar", "baz": "qux"})
   >>> thingy.foo
   "bar"
   >>> thingy.foobaz
   "barqux"

   >>> thingy.foo = "BARRRR"
   >>> thingy.view()
   {"foo": "BARRRR", "baz": "qux"}


...that can have different dictionary views!
--------------------------------------------

.. code-block:: python

   >>> MyThingy.add_view(name="fooz", include=["foo", "foobaz"])
   >>> MyThingy.add_view(name="no_foo", defaults=True, exclude="foo")

   >>> thingy = MyThingy({"foo": "bar", "baz": "qux"})
   >>> thingy.view("fooz")
   {"foo": "bar", "foobaz": "barqux"}
   >>> thingy.view("no_foo")
   {"baz": "qux"}


Why Thingy?
===========

Because it's much more enjoyable to write ``foo.bar`` than ``foo["bar"]``.

Thingy is mainly meant to be used inside other libraries to provide abstractions
over dictionaries, which can be useful for writing ORMs or similar utilities.

Thingy's views system is also particularly useful as-is when you intensively
manipulate dictionaries and often restrict those dictionaries to a few redundant
items.


Tests
=====

To run Thingy tests:

* install developers requirements with ``pip install -r requirements.txt``;
* run ``pytest``.


Sponsors
========

.. image:: https://raw.githubusercontent.com/Refty/thingy/master/img/numberly.png
    :alt: Numberly
    :align: center
    :target: https://numberly.com/

|

.. image:: https://raw.githubusercontent.com/Refty/thingy/master/img/refty.png
    :alt: Refty
    :align: center
    :target: https://refty.co/


License
=======

MIT