semvec/pypi-packages huggingface dataset:
sshcmds 0.1.6
A package to run ssh commands
Requires Python: >=3.9.1

# Startup server: vault server -dev
'''sh
vault server -dev
'''
# set environment: 
'''sh
set VAULT_ADDR=http://127.0.0.1:8200
'''
# login with token: Root Token: s.UyYcKkBx9Q3kONk050jTU5PH
'''sh
vault login
'''
# Enable path kv-v1:
'''sh
vault secrets enable -path="kv-v1" kv
'''
# Create secret key pairing
'''sh 
vault kv put kv-v1/<PATH> <KEY>=VALUE>
'''
# Read secret
'''sh
vault kv get kv-v1/ssh
'''
gwaxion 0.0.1
Black-hole boson gravitational-wave package.
Requires Python: >=3.6

[![github](https://img.shields.io/badge/GitHub-gwaxion-blue)](https://github.com/maxisi/gwaxion)
[![Documentation Status](https://readthedocs.org/projects/gwaxion/badge/?version=latest)](https://gwaxion.readthedocs.io/en/latest/?badge=latest)

# gwaxion

This is a package to facilitate computations related to gravitational waves from ultralight-boson condensates around black holes.
The code was primarilty developed in writing [arXiv:1810.03812](https://arxiv.org/abs/1810.03812), but it is of broad applicability.

The primary objects in this package are:
- `BlackHoleBoson`
- `BosonCloud`

Their use, as well as other features, is demonstrated in a set of Jupyter notebooks in the `examples/` directory.

Computations of boson cloud evolution and gravitational-wave emission rely on results from [arXiv:1411.0686](https://arxiv.org/abs/1411.0686) and [arXiv:1706.06311](https://arxiv.org/abs/1706.06311).

## Installation

```
pip install gwaxion
```

## Usage

Here is a barebones example to get some properties of a given black-hole--boson system, for a BH with mass `M = 50 Msun` and dimensionless spin `chi = 0.9`, and a boson with mass such that `alpha = 0.2`.

``` python
import gwaxion

# create a black-hole--boson object (scalar boson by default)
bhb = gwaxion.BlackHoleBoson.from_parameters(m_bh=50, chi_bh=0.9, alpha=0.2)

# get the fastest-growing boson level
# (l, m, nr, growth rate in Hz)
bhb.max_growth_rate()
# > (1, 1, 0, 4.175501554995195e-06)

# get the mass of the corresponding cloud after superradiant growth
# as a fraction of the original BH mass
cloud = bhb.best_cloud()
cloud.mass / cloud.bhb_initial.bh.mass
# > 0.066
```

For more examples see the `examples/` directory.

## Credit

This code was developed by [Maximiliano Isi](http://maxisi.me) with important contributions by [Richard Brito](https://richardbrito.weebly.com).

If you make use of this code for your own publications, please cite:
```
@article{Isi:2018pzk,
    author = "Isi, Maximiliano and Sun, Ling and Brito, Richard and Melatos, Andrew",
    title = "{Directed searches for gravitational waves from ultralight bosons}",
    eprint = "1810.03812",
    archivePrefix = "arXiv",
    primaryClass = "gr-qc",
    reportNumber = "LIGO-P1800270",
    doi = "10.1103/PhysRevD.99.084042",
    journal = "Phys. Rev. D",
    volume = "99",
    number = "8",
    pages = "084042",
    year = "2019",
    note = "[Erratum: Phys.Rev.D 102, 049901 (2020)]"
}
```

(This might be replaced by a dedicated publication at a later date.)
gwaxion-maxisi 0.0.2
Black-hole boson gravitational-wave package.
Requires Python: >=3.6

[![github](https://img.shields.io/badge/GitHub-gwaxion-blue)](https://github.com/maxisi/gwaxion)
[![Documentation Status](https://readthedocs.org/projects/gwaxion/badge/?version=latest)](https://gwaxion.readthedocs.io/en/latest/?badge=latest)

# gwaxion

This is a package to facilitate computations related to gravitational waves from ultralight-boson condensates around black holes.
The code was primarilty developed in writing [arXiv:1810.03812](https://arxiv.org/abs/1810.03812), but it is of broad applicability.

The primary objects in this package are:
- `BlackHoleBoson`
- `BosonCloud`
Their use, as well as other features, is demonstrated in a set of Jupyter notebooks in the `examples/` directory.

Computations of boson cloud evolution and gravitational-wave emission rely on results from [arXiv:1411.0686](https://arxiv.org/abs/1411.0686) and [arXiv:1706.06311](https://arxiv.org/abs/1706.06311).

## Installation

```
pip install gwaxion
```

## Usage

Here is a barebones example to get some properties of a given black-hole--boson system, for a BH with mass `M = 50 Msun` and dimensionless spin `chi = 0.9`, and a boson with mass such that `alpha = 0.2`.

``` python
import gwaxion

# create a black-hole--boson object (scalar boson by default)
bhb = gwaxion.BlackHoleBoson.from_parameters(m_bh=50, chi_bh=0.9, alpha=0.2)

# get the fastest-growing boson level
# (l, m, nr, growth rate in Hz)
bhb.max_growth_rate()
# > (1, 1, 0, 4.175501554995195e-06)

# get the mass of the corresponding cloud after superradiant growth
# as a fraction of the original BH mass
cloud = bhb.best_cloud()
cloud.mass / cloud.bhb_initial.bh.mass
# > 0.066
```

For more examples see the `examples/` directory.

## Credit

This code was developed by [Maximiliano Isi](http://maxisi.me) with important contributions by [Richard Brito](https://richardbrito.weebly.com).

If you make use of this code for your own publications, please cite:
```
@article{Isi:2018pzk,
    author = "Isi, Maximiliano and Sun, Ling and Brito, Richard and Melatos, Andrew",
    title = "{Directed searches for gravitational waves from ultralight bosons}",
    eprint = "1810.03812",
    archivePrefix = "arXiv",
    primaryClass = "gr-qc",
    reportNumber = "LIGO-P1800270",
    doi = "10.1103/PhysRevD.99.084042",
    journal = "Phys. Rev. D",
    volume = "99",
    number = "8",
    pages = "084042",
    year = "2019",
    note = "[Erratum: Phys.Rev.D 102, 049901 (2020)]"
}
```

(This might be replaced by a dedicated publication at a later date.)
gameoflifeemulator 0.0.1
The game of life emulator
Requires Python: >=3.6

The Game of life Emulator

    The Game of Life, also known simply as Life, is a cellular automaton devised by the British
    mathematician John Horton Conway in 1970. It is a zero-player game, meaning that
    its evolution is determined by its initial state, requiring no further input.
    One interacts with the Game of Life by creating an initial configuration
    and observing how it evolves. It is Turing complete and can simulate
    a universal constructor or any other Turing machine.

    More information on wikipedia: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

    This emulator is created by parsa shahmaleki.
    (c) 2020 parsa shahmaleki <parsampsh@gmail.com>
    Licensed Under GPL-v3

    Cli Usage:
        python3 -m gameoflife --option1=value --option2=value ...

    Code Usage:
        gol = GameOfLife(option1=value, option2=value...)
        gol.start()

    Options:
        you can customize the emulator using this options

        `width`         width of the world. default: width of the terminal
        `height`        hegith of the world. default: height of the terminal
        `live_char`     symbol of the live cell. default: `+`
        `dead_char`     symbol of the dead cell. default: ` `
        `sleep_time`    sleep time between world frames(secounds). default: `0.05`
        `border_char`   the world border chars. default: `#`
        `title`         a title of the head of the world. default: `Conway's Game of life`
        `random_har`    how much initialized live cells. every more means harder. default: `3`

    Cli Example:
        gameoflife --width=100 --height=40 --live_char='@' --sleep_time=0.2 --title='my gameoflife'

    Code Example:
        GameOfLife(width=100, live_char='@' sleep_time=0.2, title="something").start()
gameoflife-emulator 0.0.1
The game of life emulator
Requires Python: >=3.6

The Game of life Emulator

    The Game of Life, also known simply as Life, is a cellular automaton devised by the British
    mathematician John Horton Conway in 1970. It is a zero-player game, meaning that
    its evolution is determined by its initial state, requiring no further input.
    One interacts with the Game of Life by creating an initial configuration
    and observing how it evolves. It is Turing complete and can simulate
    a universal constructor or any other Turing machine.

    More information on wikipedia: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

    This emulator is created by parsa shahmaleki.
    (c) 2020 parsa shahmaleki <parsampsh@gmail.com>
    Licensed Under GPL-v3

    Cli Usage:
        python3 -m gameoflife --option1=value --option2=value ...

    Code Usage:
        gol = GameOfLife(option1=value, option2=value...)
        gol.start()

    Options:
        you can customize the emulator using this options

        `width`         width of the world. default: width of the terminal
        `height`        hegith of the world. default: height of the terminal
        `live_char`     symbol of the live cell. default: `+`
        `dead_char`     symbol of the dead cell. default: ` `
        `sleep_time`    sleep time between world frames(secounds). default: `0.05`
        `border_char`   the world border chars. default: `#`
        `title`         a title of the head of the world. default: `Conway's Game of life`
        `random_har`    how much initialized live cells. every more means harder. default: `3`

    Cli Example:
        gameoflife --width=100 --height=40 --live_char='@' --sleep_time=0.2 --title='my gameoflife'

    Code Example:
        GameOfLife(width=100, live_char='@' sleep_time=0.2, title="something").start()
roles 1.0.0
Role based software development
Requires Python: >=3.7,<4.0
Keywords: role,DCI,data,context,interaction

# Roles

Library for Role based development.

Pythonic implementation of the DCI (Data Context Interaction) pattern
(http://www.artima.com/articles/dci_vision.html).

The big difference with mixins is that this role is applied only to the subject
instance, not to the subject class (alas, a new class is constructed).

Roles can be assigned and revoked. Multiple roles can be applied to an
instance. Revocation can happen in any particular order.

Homepage: http://github.com/amolenaar/roles

Releases: http://pypi.python.org/pypi/roles


## Using Roles

As a basic example, consider a domain class:

```python
>>> class Person:
...     def __init__(self, name):
...         self.name = name
>>> person = Person("John")
```

The instance should participate in a collaboration in which it fulfills a
particular role:

```python
>>> from roles import RoleType
>>> class Carpenter(metaclass=RoleType):
...     def chop(self):
...          return "chop, chop"

```
Assign the role to the person:

```python
>>> Carpenter(person)				# doctest: +ELLIPSIS
<__main__.Person+Carpenter object at 0x...>
>>> person					# doctest: +ELLIPSIS
<__main__.Person+Carpenter object at 0x...>

```

The person is still a Person:

```python
>>> isinstance(person, Person)
True

```
... and can do carpenter things:

```python
>>> person.chop()
'chop, chop'

```

See [`roles.py`](http://github.com/amolenaar/roles/blob/master/roles.py) for more examples.

## Context

Roles make a lot of sense when used in a context. A classic example is the
money transfer example. Here two accounts are used and an amount of money is
transfered from one account to the other. So, one account playes the role of
source account and the other plays the role of target account.

An example can be found in [`example.py`](http://github.com/amolenaar/roles/blob/master/example.py).