semvec/pypi-packages huggingface dataset:
oarepo-citations 1.0.2
Support for citations

# OARepo Citations

A citation management extension for OARepo that provides comprehensive citation functionality for academic records. This package enables users to generate and export citations in multiple academic formats directly from record detail pages.

## Installation

Install the package using pip:

```bash
pip install oarepo-citations
```

## Usage

### Basic Integration

Once installed, the citation functionality is automatically available on record detail pages. The package provides:

1. **Citation Dropdown Component**: A compact dropdown selector for citation styles
2. **Citation Modal Component**: An expanded modal view for detailed citation information

### Configuration & Integration

To customize the citation styles and default style, update the configuration settings in your `invenio.cfg` or equivalent configuration file:

```python
CITATION_STYLES = [
    { "style": "iso690-author-date-cs", "label": _("ČSN ISO 690") },
    { "style": "bibtex", "label": _("BibTeX") }
]
CITATION_STYLES_DEFAULT = "iso690-author-date-cs"
```

Include citations in your record JinjaX templates:

```jsx
<RecordCitations record={record} styles={config.get("CITATION_STYLES")} defaultStyle={config.get("CITATION_STYLES_DEFAULT")} />
```

#### Supported Citation Styles
The package supports various citation styles, including but not limited to:
- `{ "style": "iso690-author-date-cs", "label": "ČSN ISO 690" }`
- `{ "style": "apa", "label": "APA" }`
- `{ "style": "harvard-cite-them-right", "label": "Harvard" }`
- `{ "style": "modern-language-association", "label": "MLA" }`
- `{ "style": "vancouver", "label": "Vancouver" }`
- `{ "style": "chicago-fullnote-bibliography", "label": "Chicago" }`
- `{ "style": "ieee", "label": "IEEE" }`
- `{ "style": "bibtex", "label": "BibTeX" }`

### JavaScript Components

The package exports React components that can be used in custom implementations:

```javascript
import { RecordCitationsDropdown, RecordCitationsModal } from '@js/record_citations';
```

## License

This project is part of the OARepo ecosystem developed by CESNET.

## Support

For issues and questions, please use the project's issue tracker or contact the development team at CESNET.
phtuankiet 0.0.1
anh iu tất cả các em
Requires Python: >=3.7

Một thư viện Python đơn giản để gửi tin nhắn và tệp qua Telegram Bot một cách nhanh chóng.

Cài đặt
Generated bash
pip install phtuankiet

Sử dụng

Bạn cần có chat_id của người nhận hoặc nhóm chat.

Generated python
from phtuankiet import sendtelegram

# Gửi một tin nhắn văn bản
sendtelegram(chat_id="ID_CHAT_CUA_BAN", msg="Chào bạn, đây là tin nhắn tự động!")

# Gửi một tệp tin
# Tạo một tệp ví dụ
with open("test.txt", "w") as f:
    f.write("Đây là nội dung của tệp.")

sendtelegram(chat_id="ID_CHAT_CUA_BAN", file_path="test.txt")

# Gửi một tệp tin kèm theo chú thích
sendtelegram(chat_id="ID_CHAT_CUA_BAN", msg="Đây là tệp báo cáo nhé!", file_path="test.txt")

# sendtelegram(
#     chat_id="ID_CHAT_CUA_BAN",
#     msg="Gửi bằng token khác",
#     token="TOKEN_BOT_KHAC_CUA_BAN"
# )
rock-paper-scissors-py 0.1.4
Multi-player and multi-action Rock, Paper, Scissors game client
Requires Python: >=3.12

# rock-paper-scissors-py

Multi-player and multi-action Rock, Paper, Scissors game client.

## Installation

To install, run the following commands:

```bash
pip install rock-paper-scissors-py

# or

git@github.com:jwc20/rock-paper-scissors-py.git
cd rock-paper-scissors-py
```

To use the engine, first setup and activate a python virtual environment (venv)

```bash
python3 -m venv .venv
. ./.venv/bin/activate
```

Install from requirements.txt

```bash
pip3 install -r requirements.txt
```

## Usage:

In your Python file, to import, type

```python
import rps
```

Set the number of actions allowed in the game (beats logic will be generated based on the number of actions)

```python
action_three = 3  # rock, paper, scissors

# => BEATS = {
#        0: [2],  # Rock beats Scissors
#        1: [0],  # Paper beats Rock
#        2: [1],  # Scissors beats Paper
#    }


action_five = 5      # rock, paper, scissors, Spock, lizard

# => BEATS = {
#        0: [2, 3],  # Rock crushes Scissors & Lizard
#        1: [0, 4],  # Paper covers Rock & disproves Spock
#        2: [1, 3],  # Scissors cuts Paper & decapitates Lizard
#        3: [1, 4],  # Lizard eats Paper & poisons Spock
#        4: [0, 2],  # Spock vaporizes Rock & smashes Scissors
#    }
```

Set the players with either fixed or random actions

```python
player_jae = rps.FixedActionPlayer("Jae", 0) # always plays Rock, like an idiot

# bunch of random players with random actions
random_player_names = [f"random{i}" for i in range(20)]
random_players = [rps.RandomActionPlayer(name) for name in random_player_names]
```

Set the game and play

```python
game = rps.Game(random_players, action_three)

game.play()
```

### Example

Run the `example.py` in the root directory

```bash
python example.py
```

---

## Note

Game consists of `m` players and `n` actions where `m >= 2` and `n >= 3` and `n` is an odd number.

Actions are hand gestures played by the players (rock, paper, scissors).

If the number of actions set in the game is between 5 and 15, the game uses the rules made by [Sam Kass](https://www.samkass.com/theories/RPSSL.html) and [David C. Lovelace](https://www.umop.com/rps.htm).

---

## See also:

- https://www.umop.com/rps.htm

- https://www.samkass.com/theories/RPSSL.html