semvec/pypi-packages huggingface dataset:
HiddenPrint 0.0.2
A small package to block print statements
Requires Python: >=3.8

# HiddenPrints

![workflow](https://github.com/AdmiralLuke/HiddenPrints/actions/workflows/python-package.yml/badge.svg)

Sick of unnecessary prints from other libraries? Simply block them of with this small package

## Install

### via pip

```bash
pip install hiddenprint
```

## Usage

### 1) ``with``-Wrapper
To use the blocking mechanisms inside of methods for one or more lines of code, just wrap it in a ``with``-statement

```py
from hiddenprint import *

with HiddenPrints():
    # code where prints should not be visible in the console
    print("This won't be printed")

# code where prints should be visible in the console
print("Hello World!")
```

### 2) Function Decorator Flag

To block prints right up for a self defined function, decorator annotations can be used to block all prints within the function.

```py
from hiddenprint import *

@hide
def print_nothing_and_sum(a: int, b: int):
    print("something nobody can see")
    return a + b

result = print_nothing_and_sum(4, 3) 
print(result) # prints 7
```

## Contribution

This is only a very small package and project. If you have some ideas to improve the quality of life, feel free to make a pull request.
dewdl 0.2.4
Request and data manager for interfacing with the UDL
Requires Python: >=3.9

# DewDL

DewDL is intended to enable quick access to products from the Unified Data Library.

## Getting Started

DewDL can be used by explicitly passing credentials into functions found in `dewdl.requests._udl_request`; however,
the preferred method is to store credents via the config interface to avoid accidental distribution of passwords.
Follow the steps below to store your credentials in a `dewdl.json` config file:

### Option 1 - Username and Password

> **_NOTE:_**
>
> You can add your password using quotations to avoid parsing issues in the terminal

```console
dewdl config user <your-user>
dewdl config password <your-password>
```

### Option 2 - NPE Certificates

```console
dewdl config crt /path/to/crt/file
dewdl config key /path/to/key/file
```

### Review Config Contents

The config file path and contents can be shown at anytime with the following command:

```console
dewdl config show
```

## Making Requests to the UDL

```python
>>> from datetime import datetime
>>> from dewdl.enums import UDLEnvironment, UDLQueryType
>>> from dewdl.requests import UDLRequest

# Define an endpoint to get elsets after Sep 16, 2024
>>> elset_query = UDLQuery(UDLQueryType.ELSET, UDLEnvironment.PROD).after(datetime(2024, 9, 16))

# Make the request
>>> response = UDLRequest.get(elset_query)

# Use the response data as a list
>>> elset_list = response.json()
```