semvec/pypi-packages huggingface dataset:
m4rtin 0.3.0
Una biblioteca para consultar cursos de Hack4u


## Cursos disponibles

- Introducción a Linux [53 horas]
- Personalización de Linux [3 horas]
- Introducción al Hacking [53 horas]

## Instalación

Instala el paquete usando `pip3`:

```python3
pip3 install m4rtin
```

## Uso básico

## Listar todos los cursos

```python3
from m4rtin import list_courses

for course in list_courses:
    print(course)
```

### Obtener un curso por nombre

```python3
from m4rtin impor get_course_by_name

course = get_course_by_name('Introduccón a Linux')

print(course)
```

## Calcular duración total de los cursos

```python3
from m4rtin import total_duration

print(f"Duración total: {total_duration()} horas.")
```
here-log 1.0.1
A package to print the current position in code
Requires Python: >=3.6

# Here

This package prints the current position (file name, line number) in your code.
You can use it as follows:

```python
from here import here

# Print the position
print(here)

# Print the position without print statement
here()

# Print a custom message
here("This is a custom message.")

# Print a custom message with a variable
variable = "test"
here(f"This is a custom message with a variable: {variable}")
```
hrefs 0.14
Hyperlinks for pydantic models
Requires Python: >=3.9

Hyperlinks for pydantic models
==============================

Read `a blog post from the library author
<https://www.jmoisio.eu/en/blog/2023/03/12/a-library-for-managing-hyperlinks-in-modern-python-web-applications/>`_
discussing why this library exists.

In a typical web application relationships between resources are modeled by
primary and foreign keys in a database (integers, UUIDs, etc.). The most natural
way to represent relationships in REST APIs is by URLs to the related resources
(explained in `this blog
<https://cloud.google.com/blog/products/application-development/api-design-why-you-should-use-links-not-keys-to-represent-relationships-in-apis>`_).

``hrefs`` makes it easy to add hyperlinks between `pydantic
<https://pydantic-docs.helpmanual.io/>`_ models in a declarative way. Just
declare a ``Href`` field and the library will automatically convert between keys
and URLs:

.. code-block:: python

   from hrefs import Href, BaseReferrableModel
   from pydantic import BaseModel

   class Book(BaseReferrableModel):
       id: int

       class Config:
           details_view = "get_book"

   class Library(BaseModel):
       books: list[Href[Book]]

   @app.get("/books/{id}")
   def get_book(id: int) -> Book:
       return Book(id=id)

   @app.get("/library")
   def get_library() -> Library:
       """
       Will serialize into:
       {"books":["https://example.com/books/1","https://example.com/books/2","https://example.com/books/3"]}
       """
       return Library(books=[1,2,3])

   @app.post("/library")
   def post_library(library: Library):
       """
       Assuming the request contains
       {"books":["https://example.com/books/1","https://example.com/books/2","https://example.com/books/3"]}
       Will deserialize into: [1,2,3]
       """
       write_to_database([href.key for href in library.books])

``hrefs`` was written especially with `FastAPI <https://fastapi.tiangolo.com/>`_
in mind, but integrates into any application or framework using pydantic to
parse and serialize models.

Check out the `documentation <https://hrefs.readthedocs.io/>`_ to get started!

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

Install the library using ``pip`` or your favorite package management tool:

.. code-block:: console

   $ pip install hrefs
pinster 0.1.1
Hitster CLI clone
Requires Python: >=3.13

# pinster

Hitster CLI clone. Guess the song name, artist and year just by listening.

## Requirements for playing

You need a Spotify Developer App configured
(https://developer.spotify.com/documentation/web-api/tutorials/getting-started).

## Instructions

Simply install and/or run the command using your preferred package manager
(example: `uvx pinster`). Use the `--help` option if needed.

The game plays a random song from your Liked Songs. Pause using `Enter` and guess
the song details. Press `Enter` to reveal the answer. Press `Enter` again to play
the next song.