semvec/pypi-packages huggingface dataset:
clearbot 0.3.0
Clearbit Logo API client
License: MIT
Requires Python: >=3.10,<4.0

# clearbot

Clearbit Logo API client.

`clearbot` fetches the logo of company (png file) based on their domain name.

## Install

The script in available through a python package.

```shell
pip install clearbot
```

## Get started

You can run directly the script on a domain.

```shell
clearbot github.com
```

![github](examples/github.com.png)

You can pass several domains as well.

```shell
clearbot github.com gitlab.com
```

A file can also be used as input (one domain by line).

```shell
clearbot -f ./domains.txt
```

By default it will output `/tmp/<DOMAIN>.png`. You can change the destination directory with the `-d` option.

```shell
clearbot -d . github.com
```

By default it outputs 512px png file (i.e. the greatest side has 512px). You can change it with the `-s` option.

```shell
clearbot -s 64 github.com
```

![64](examples/github.com.64.png)

Sometimes we may want to remove the white background (by using transparency: alpha = 0). For this purpose, you can use the `-t` options that thresholds the whites (it must be between 0 and 255 as it is applied on a grayscale version of the image).

```shell
clearbot -t 240 github.com
```

![alpha](examples/github.com.alpha.png)

Since `v0.3.0`, clearbot can colorize image (but it is still **experimental**). You can color the whites (resp. the blacks) by providing the `-w` flag (resp. the `-b` flag).

```shell
clearbot -t 235 -b "#FC6D26" github.com
```

![color](examples/github.com.color.png)

## What's next?

- Add tests
- Print result to the terminal
ashley 1.3.1
A self-hosted discussion forum for learning
License: MIT
Keywords: Django,forum,Open edX,message board,discussion

# Ashley, a self-hosted discussion forum for learning

## Overview

`Ashley` is a forum designed to be integrated into `Learning Management Systems` (LMS).

It is a multi-tenant service intended to be operated independently. It can be integrated to any LMS (like [Open edX](https://open.edx.org) or [Moodle](https://moodle.org)), thanks to the [LTI](https://en.wikipedia.org/wiki/Learning_Tools_Interoperability) standard.

`Ashley` is built on top of [Django-machina](https://github.com/ellmetha/django-machina/), a powerful forum engine for `Django`.

## Quick preview

Here is an example integration of Ashley in `Open edX`:

![demo](docs/demo.gif)


## Contributing

This project is intended to be community-driven, so please, do not hesitate to
get in touch if you have any question related to our implementation or design
decisions.

We try to raise our code quality standards and expect contributors to follow
the recommandations from our
[handbook](https://openfun.gitbooks.io/handbook/content).

## License

This work is released under the MIT License (see [LICENSE](./LICENSE)).

## Getting started

Make sure you have a recent version of Docker and
[Docker Compose](https://docs.docker.com/compose/install) installed on your laptop:

```bash
$ docker -v
  Docker version 18.09.0, build 4d60db4

$ docker-compose --version
  docker-compose version 1.23.2, build 1110ad01
```

⚠️ You may need to run the following commands with `sudo` but this can be avoided by assigning your user to the `docker` group.

## Project bootstrap

The easiest way to start working on the project is to use our `Makefile` :

```bash
$ make bootstrap
```

This command builds the `app` container, installs front-end and back-end dependencies, builds the front-end application and styles, and performs database migrations. It's a good idea to use this command each time you are pulling code from the project repository to avoid dependency-related or migration-related issues.

Now that your Docker services are ready to be used, start the service by running :

```bash
$ make run
```

You should be able to test the forum at [http://localhost:8090/dev/](http://localhost:8090/dev/).
This is the development view that emulates a LTI consumer.

## Django admin

You can access the Django admin site of the forum at [http://localhost:8090/admin/](http://localhost:8090/admin/)

You first need to create a superuser account. 

```bash
$ make superuser
```

## Troubleshooting

### ElasticSearch service out with an Exit 137

```bash
$ docker-compose ps
```
> ashley_elasticsearch_1   /docker-entrypoint.sh elas ...   Exit 137

This is due to a lack of memory.
N.B. for Mac users, the default Docker's configuration is also 2GB which means that Elasticsearch will automatically exit.

To fix this issue, you need to upgrade your default configuration.