semvec/pypi-packages huggingface dataset:
rebelbase 1.0.0a7
Recruit numbers to any base
License: MIT
Requires Python: >=3.9

# RebelBase

[![codecov](https://codecov.io/gh/cariad/rebelbase/branch/main/graph/badge.svg?token=3YgEtYwvmb)](https://codecov.io/gh/cariad/rebelbase)

**RebelBase** is a Python package for working with numbers of any base.

Full documentation is online at **[rebelbase.dev](https://rebelbase.dev)**.

## What does RebelBase do?

Want to work with base 3 numbers? We've got you covered.

```python
from rebelbase import Base3

n = Base3(42)           # Represent decimal 42 in base 3

print("n:    ", n)      #  "1120" (Decimal 42     == base 3  1120)
print("n + 1:", n + 1)  #  "1121" (Decimal 42 + 1 == base 3  1121)
print("n - 1:", n - 1)  #  "1112" (Decimal 42 - 1 == base 3  1112)
print("n / 2:", n / 2)  #   "210" (Decimal 42 / 2 == base 3   210)
print("n * 2:", n * 2)  # "10010" (Decimal 42 * 1 == base 3 10010)

n = Base3("212")        # Create the base 3 value 212

print(int(n))           # "23"    (Base 3 212     == decimal 23)
```

Need to make your own bonkers base 5 system with vowels for digits? No problem.

```python
from rebelbase.number import Number

class Base5(Number):
    @classmethod
    def digits(cls) -> tuple[str, ...]:
        return ("A", "E", "I", "O", "U")

n = Base5(42)           # Represent decimal 42 in base 5

print("n:    ", n)      # "EOI" (Decimal 42     == base 5 EOI)
print("n + 1:", n + 1)  # "EOO" (Decimal 42 + 1 == base 5 EOO)
print("n - 1:", n - 1)  # "EOE" (Decimal 42 - 1 == base 5 EOE)
print("n / 2:", n / 2)  #  "UE" (Decimal 42 / 2 == base 5  UE)
print("n * 2:", n * 2)  # "OEU" (Decimal 42 * 2 == base 5 OEU)

n = Base5("OOO")        # Create the base 5 value OOO

print(int(n))           # "93"  (Base 5 OOO     == decimal 93)
```

A [`Number`](https://rebelbase.dev/number/) can be [created](https://rebelbase.dev/create/) with [optional zero support](https://rebelbase.dev/optional-zero/) for any base.

Numbers can be initialised with their decimal value or string representation.

A ton of Python [operations](https://rebelbase.dev/number/#math-operations) -- including addition, subtraction, floor and true division, multiplication, modulo and exponentiation -- work out of the box.

## Installation

**RebelBase** requires Python 3.9 or later.

```console
pip install rebelbase
```

## Support

Please raise bugs, request new features and ask questions at [github.com/cariad/rebelbase/issues](https://github.com/cariad/rebelbase/issues).

## Contributions

See [CONTRIBUTING.md](https://github.com/cariad/rebelbase/blob/main/CONTRIBUTING.md) for contribution guidelines.

## The Project

**RebelBase** is &copy; 2022 Cariad Eccleston and released under the [MIT License](https://github.com/cariad/rebelbase/blob/main/LICENSE) at [cariad/rebelbase](https://github.com/cariad/rebelbase).

## The Author

Hello! 👋 I'm **Cariad Eccleston** and I'm a freelance backend and infrastructure engineer in the United Kingdom. You can find me at [cariad.earth](https://cariad.earth), [github.com/cariad](https://github.com/cariad), [linkedin.com/in/cariad](https://linkedin.com/in/cariad) and on Mastodon at [@cariad@tech.lgbt](https://tech.lgbt/@cariad).
public-domains 0.0.8
Find possible host names in a source text
License: MIT
Requires Python: >=2.7

# public_domains

[![Build Status](https://github.com/thisisparker/public_domains/workflows/tests/badge.svg)](https://github.com/thisisparker/public_domains/actions/workflows/main.yml)

*public_domains* searches through a text (such as a novel like [Moby Dick](https://www.gutenberg.org/files/2701/2701-0.txt)) and looks for possible host names to use. For more context about why such a thing was created see:

https://parkerhiggins.net/2022/11/public-sub-domains

## Install

```
$ pip3 install public_domains
```

## Use

Get a text, e.g. from [Project Gutenberg](https://www.gutenberg.org/):

```
wget https://www.gutenberg.org/files/2701/2701-0.txt
```

Run:

```bash
$ public_domains 2701-0.txt

tattooing.burned.like
fishermen.technically.call
violent.scraping.contact
irregular.between.here
verbally.developed.here
mizzen.rigging.like
eepeningly.contracted.like
tropic.whaling.life
trailing.behind.like
certain.fragmentary.parts
redundant.yellow.hair
personality.stands.here
wicked.miserable.world
...
```

Or if you prefer to do a "feeling lucky" search of gutenberg.org you can enter a title:

```bash
$ public_domains "Treasure Island"

famous.buccaneer.here
maroon.wriggling.like
keeping.better.watch
little.mountain.stream
admiral.benbow.black
breathing.loudly.like
breath.hanging.like
shirts.thrown.open
promontory.without.fail
feverish.unhealthy.spot
something.almost.like
following.important.news
lookout.shouted.land
spirits.eating.like
resumed.silver.here
stranded.beyond.help
trebly.worthless.life
including.checks.online
canvas.cracking.like
almost.entirely.exposed
flowers.ablowing.like
counting.hawkins.here
little.stranger.here
foliage.compact.like
strange.collection.like
seamen.aboard.here
creature.flitted.like
nighhand.fainting.doctor
crying.johnny.black
enough.little.place
```


If you'd like *public_domains* to check if the domain is available use the the `--check` option:

<img width="800" src="https://raw.githubusercontent.com/edsu/public_domains/main/screenshot.gif">
semantic-tree 1.1.1
Creates a visualization of the semantic neighborhood of a word in a Gensim's Word2Vec vector space model using the Gource visualizer
License: MIT
Requires Python: >=3.10,<4.0


# Semantic Tree



This package provide a semanticTree command, which generates a visualization of the semantic neighborhood of a work in a Gensim Word2vec vector space.


## Installation


This package requires that [Gource](https://gource.io/) is installed locally. On Ubuntu, it can be apt installed.

```bash
$ apt install gource
```

SemanticTree itself can be installed from PyPI with `pip`.

 ```
 pip install -U semantic_tree
 ```

![Screenshot](screen.png)
## Note


This project has been set up using PyScaffold 3.2.3. For details and usage
information on PyScaffold see https://pyscaffold.org/.