semvec/pypi-packages huggingface dataset:
django-fakejira-testing122 0.1
Fakejira installable django app
License: MIT
Requires Python: >=3.8

django-fakejira
===============

This is sample code used in the Real Python article [Writing an Installable Django App](???). The article describes how to take an app from an existing Django project and make it a stand-alone installable package avilable on PyPI.

Installable App
---------------

This app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.

This app can be installed and used in your django project by:

.. code-block:: bash

    $ pip install django-fakejira


Edit your `settings.py` file to include `'fakejira'` in the `INSTALLED_APPS`
listing.

.. code-block:: python

    INSTALLED_APPS = [
        ...

        'fakejira',
    ]


Edit your project `urls.py` file to import the URLs:


.. code-block:: python

    url_patterns = [
        ...

        path('fakejira/', include('fakejira.urls')),
    ]


Finally, add the models to your database:


.. code-block:: bash

    $ ./manage.py makemigrations fakejira
stockholm-library 0.2.0
Unofficial SDK for interacting with Stockholm Library.
License: MIT
Requires Python: >=3.6
Keywords: Stockholm Library API

# Stockholm-Library

[![License][license_img]][license_target]
[![Latest PyPI version][pypi_version_img]][pypi_version_target]
[![PyPI status][pypi_status_img]][pypi_status_target]


[license_target]: https://raw.githubusercontent.com/vonNiklasson/stockholm-library/develop/LICENSE
[license_img]: https://img.shields.io/pypi/l/stockholm-library.svg

[pypi_version_target]: https://pypi.python.org/pypi/stockholm-library/
[pypi_version_img]: https://img.shields.io/pypi/v/stockholm-library.svg

[pypi_status_target]: https://pypi.python.org/pypi/stockholm-library/
[pypi_status_img]: https://img.shields.io/pypi/status/stockholm-library.svg

Unofficial SDK for interacting with [Stockholm Library](https://biblioteket.stockholm.se)

> Currently the project is in very early development and very little 
> functionality can be used. But if you are eager to get stuff going, 
> please consider helping out by [contributing](#contributing)!


## Usage

### Connecting

The simplest way to connect with the client is through credentials.

```python
from stockholm_library import Client

client = Client()
success: bool = client.login(
    user="8705061234",
    pin="1234"
)
print(success)  # True
```

### Fetching loaned books

```python

loans = client.get_loans()

for loan in loans:
    print(loan)  # {id: 123456, book: ...}
```

Below is the structure of a `Loan` object:

```python
{
    "id": 123456,
    "book": models.Book(
        "id": 129716,
        "title": "Liftarens guide till galaxen",
        "author": "Douglas Adams"
    ),
    "borrowed_from": "Telefonplans bibliotek",
    "borrowed_date": datetime.date(2022, 3, 5),
    "due_date": datetime.date(2022, 4, 3),
    "can_re_borrow": True
}
```

Beware that not all loans have an ID at every given moment. If it's not possible to re-borrow a book it won't yield an ID.

  
## Contributing

Contributions are always welcome!

To contribute, please take the following steps:

1. [Fork](https://github.com/vonNiklasson/stockholm-library/fork) the repo
2. Add your change
3. Make a pull request with a short description of the change you're proposing.


## Authors

- [@vonNiklasson](https://www.github.com/vonNiklasson)
django-fakejira-testing12 0.1
Fakejira installable django app
License: MIT
Requires Python: >=3.8

django-fakejira
===============

This is sample code used in the Real Python article [Writing an Installable Django App](???). The article describes how to take an app from an existing Django project and make it a stand-alone installable package avilable on PyPI.

Installable App
---------------

This app models a list of items on a receipt. Each item has a description and a cost. A receipt may reference multiple items.

This app can be installed and used in your django project by:

.. code-block:: bash

    $ pip install django-fakejira


Edit your `settings.py` file to include `'fakejira'` in the `INSTALLED_APPS`
listing.

.. code-block:: python

    INSTALLED_APPS = [
        ...

        'fakejira',
    ]


Edit your project `urls.py` file to import the URLs:


.. code-block:: python

    url_patterns = [
        ...

        path('fakejira/', include('fakejira.urls')),
    ]


Finally, add the models to your database:


.. code-block:: bash

    $ ./manage.py makemigrations fakejira