semvec/pypi-packages huggingface dataset:
macrostrat.auth_system 1.0.3
Authentication system for Macrostrat and related apps
Requires Python: <4.0,>=3.10

# Macrostrat authentication system

This module contains tools to manipulate Macrostrat's user authentication
system. It is divided into two submodules:

- `macrostrat.auth_system.legacy`: A JWT-based authentication system relying on
  local storage of hashed passwords. This system was created as part
  of [Sparrow](https://sparrow-data.org) and is being phased out in favor of a
  more modern system based on ORCID.
- `macrostrat.auth_system.core`: An ORCID-based user
  authentication system. This system will become the primary authentication
  system for Macrostrat, but it is still in development.

We plan to gradually converge the functionality of both versions while phasing
out the legacy system.

The system has tests that can be run with `poetry run pytest auth-system`
(currently, only the legacy system is covered).

## Key planned functionality

- Allow many Macrostrat-hosted services to easily integrate with Macrostrat's
  login and token flow
- Allow APIs to easily validate user credentials and tokens with minimum
  overhead
- Allow access to be checked in multiple ways:
  - Cookies and headers
  - Limited-time JWT tokens and long-duration, cancelable API tokens
  - Verify against Macrostrat "user group" or application-specific criteria (
    e.g., a list of authorized ORCID IDs)
Haack4uu 3.1.8
Biblioteca para practicar.

# Hack4U Academy Courses Library

Una biblioteca Python para consultar cursos de la academia Hack4U.

## Cursos disponibles:

- Introducción a Linux [15 horas]
- Personalización de Linux [3 horas]
- Introducció al Hacking [53 horas]
- Python ofensivo [35 horas]

## Instalación

Instala el paquete usando `pip3`:

```python3
pip3 install hack4u
```

## Uso básico

## Listar todos los cursos

```python3
from hack4u import list_courses

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

## Obtener un curso por nombre

```python3
from hack4u import search_course_by_name

course = search_course_by_name("Introduccion a Linux")
print(course)
```

## Calcular duración total de los cursos

```python3
from hack4u.utils import total_duration

print(f"Duracion total: {total_duration()} horas)
```