Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/foss42/foss42-core

Core library of our APIs
https://github.com/foss42/foss42-core

gssoc python python3

Last synced: 4 days ago
JSON representation

Core library of our APIs

Awesome Lists containing this project

README

        

[![Discord Server Invite](https://img.shields.io/badge/DISCORD-JOIN%20SERVER-5663F7?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/2s49SCNfyJ)

Contributors should go through the [Contributing Guide](https://github.com/foss42/foss42-core/blob/main/CONTRIBUTING.md) to learn how to setup development environment, raise an issue and send across a PR.

# foss42

![PyPI](https://img.shields.io/pypi/v/foss42?logo=python&logoColor=yellow&style=for-the-badge)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/foss42?logo=python&logoColor=yellow&style=for-the-badge)

Core Python library for [foss42 Open Source APIs](https://github.com/foss42/api).

## Installation

```
pip3 install foss42
```

## List of available functions

[Link](https://foss42.github.io/foss42-core)

## Usage example

```python
>>> import foss42.text.humanize as hz
>>> hz.humanize_bytes(1126,
2,
prefix = True,
trailing_zeros = True)
>>> '1.10 kilobytes'
```