semvec/pypi-packages huggingface dataset:
myMathPackage 0.0.3
A small math package
Requires Python: >=3.0

# myMathPackage
This is a simple package with the following calculation options:

calculateSquares(endValue):

    - takes an endValue
    
    - calculates all square numbers from 1 to endValue
    
    - prints all values onto the console

calculateSquareRoots(endValue):

    - takes an endValue
    
    - calculates all square roots from 1 to endValue
    
    - prints all values onto the console
    
calculateFibo(border):

    - takes an endValue
    
    - calculates all fibonacci numbers between 0 and border 
    
    - prints all values onto the console
    
calculatePows(exp, endValue):

    - takes an exponent and an endValue
    
    - calculates all numbers in range between 1 and endValue powered by exp
    
    - prints all values onto the console

Notice: 

    - Make sure you enter valid numbers

You can use
[Github-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
to write your content.
pg-sequence-increaser 0.2
Set all sequences to a higher value when promoting a PostgreSQL logical replica
Requires Python: >=3

# pg-sequence-increaser
Set all sequences to a higher value when promoting a PostgreSQL logical replica.


## Requirements

1. Python3
2. `libpq-dev` (for psycopg2). On Mac OS, `brew install postgresql`, on Ubuntu, install `libpq-dev`.

## Installation

### Production

```bash
$ pip install pg-sequence-increaser
```

### Development

Using virtualenv,
```bash
$ pip install -r requirements.txt
```

### Usage

This tool implements two strategies:

1. Getting the sequences and their desired values from the logical replica alone (called "max-id-on-replica"),
2. getting the sequences and their desired values from the primary database, i.e. the publisher; this is called "primary-sequences".

#### Max Id on Replica

We get the sequences from `information_schema.default_value`. Any `default_value` that has `nextval('some_sequence_name')`, we assume that's a sequence and extract the table name, the associated column and the sequence name. Then, we run `MAX(column_name)` to get the last value inserted into that table, likely from the sequence; we then move the sequence forward to the `MAX(column_name) + increment_by`. This strategy has the advantage of using the replica as the source of truth and not requiring the publisher to be online.


```bash
$ pgseqmover --replica-url=postgres://localhost:5432/my_db --queries-only
```
will print the queries you can then run manually. Those queries will increase all sequences by 1000.

#### Primary Sequences

We get the sequences from the primary (publisher). After all, that's where we are replicating from in the first place. We use `pg_sequences` view and get both the name and the `last_value` from there as well. We then set the sequences on the replica to what they are on the primary + `increment_by`. This strategy has the advantage of using the primary database as the source of truth in case replica lag is non-zero during promotion which is bad, but possible. This requires the primary to be available during promotion of the replica.


```bash
$ pgseqmover --replica-url=postgres://replica-db:5432/my_db --primary-url=postgres://primary-db:5432/my_db --queries-only --strategy=primary-sequences
```
will print the queries you can then run manually. Those queries will increase all sequences by 1000.

#### Arguments

This also accepts optional arguments:

1. `--dry-run` which will show the queries it will run but not actually do anything; this is the default behavior,
2. `--debug` will show _all_ queries it's running; can be combined with `--dry-run`,
3. `--increment-by` overrides the default increase by value of 1000 to any value (even negative ones).
4. `--strategy` picks the strategy to use for increasing sequences. Your options are: `primary-sequences` and `max-id-on-replica`, both explained above.
5. `--queries-only` will only print the queries that will move the sequences and not do anything else. Less pretty version of `--dry-run`, but good for `pgseqmover --queries-only > ~/Desktop/queries_to_run.sql` use case.
PyCoCoraHS 0.1.1
An API and CLI for reporting CoCoRaHS observations.
Requires Python: >= 3.6

# PyCoCoraHS

PyCoCoraHS is a Python package providing a CLI utility and an API for uploading observations to
[CoCoRaHS](https://cocorahs.org).

## Installing
Install this package using `pip`:
```shell
python3 -m pip install --user PyCoCoraHS
```

## Using the CLI
You can invoke the CLI via `cocorahs`. Here is the help output:
```
Usage: cocorahs [OPTIONS] PERCIPITATION

  Report PERCIPITATION amount to CoCoRaHS. Enter T for trace amounts.

Options:
  --station TEXT   The CoCoRaHS station code
  --username TEXT  Your CoCoRaHS username
  --password TEXT  Your CoCoRaHS password
  --help           Show this message and exit.
```

### Configuring the CLI via a config file.
Create a file at `~/.config/cocorahs/config.ini` containing a config like the following but
changing the details to your username, password, & station.
```ini
[CoCoRaHS]
username = DanielSchep
password = hunter2
station = VA-RCC-15
```

## API Usage
Here is a simple example of making a new report via the API:
```python
from cocorahs import CoCoRaHS

api = CoCoRaHS(username='DanielSchep', password='hunter2')
api.new_report(station='VA-RCC-15', percipitation='0.1', trace=False)
```

The `new_report` function also accepts an `observation_time` keyword argument. It should be a
`datetime.datetime` object.
Quran-Module 0.0.1
Python Package for Quran. Access English, Arabic in less than three Lines of Code, Search for Text in Quran and Make Custom files with Custom list of Ayah and much more!
Requires Python: >=3.6

# Quran_Module

Using this Module, you can access all verses of Quran in Arabic and their Translations. You can Also search the Quran both in Arabic and English, with as little as 3 lines of Code

## Installation

```
pip install Quran_Module [Working on it, Not Online Yet]
git clone https://github.com/UBISOFT-1/Quran_Module.git
```
*Make .py files in the cloned folders for this Module to work.*
## Usage

To use this Module, the Documentation is Straight Forward. All of the Code below is super easy
and all the documentation you need to know.
Make Sure you have your .py file in the Github Folder that you will clone.
```python
from Quran_Module import Project_Quran

Quran = Project_Quran()
# Call the Get Ayah Function for English Text, use 59 before the Surah, Verse for English.
Quran.Get_Ayah_English('59,2,20')
# Now Get the Ayah that you called for by using the Print Function to print it.
print(Quran.Ayah_English)
# You can also call the Get Ayah Function for Arabic, use 1 before the Surah and Verse for Arabic.
Quran.Get_Ayah_Arabic('1,2,20')
# Now Print the Arabic Text to see the Output
print(Quran.Ayah_Arabic)

# You can also check if an Ayah is there that you are calling for by using the following Function

Quran.Check_Ayah('59,2,20')
# It would Return as True if the Ayah is there and False if the Ayah is not there
print(Quran.Check_Ayah_Results)
if Quran.Check_Ayah_Results == True:
    print('Ayah is there! ;)')

# If you want all of the Quran as a List you can do
Quran.Get_Quran()
# This will print all of the Quran as Arabic or as English as a List
print(Quran.All_Quran_Arabic)
print(Quran.All_Quran_English)

# If you want a .txt with A range of Arabic and their Translations you can call another method
# Here there is no need to add 59, first for English and 1, first for Arabic. It is there as we add more translations.
Ayah_to_Get = ['1,2', '5,5', '6,8']
# Format <Ayah_Range>, <filename>
# Default filename = 'Quran_text.txt'
Quran.Get_Custom_Quran_text(Ayah_to_Get, filename= 'Quran_Ayah_to_read.txt')

# You can also find text in Quran and show their Results as Output by using the following method
# You can Search in English or Arabic as you like

Quran.Find_Text_English('Muhammad')
Quran.Find_Text_Arabic('إِن')
# Outputs are saved as a List
print(Quran.Search_Results_Arabic)
print(Quran.Search_Results_English)

# Remember The 59, Translation is for Abdullah Yusuf Ali (English) Widely accepted and most used
# And 1, is for the Original Arabic Text.
# That was all you are set to go, tell me what else should I add to this.


```
# Dependancies
None, Only from the Standard Library:
- ``os`` module
- ``csv`` module

# Qur'an Source
See http://www.qurandatabase.org/
All the text and Databases are theirs.

# License

See LICENSE.txt  

### Special Thanks
Special Thanks to God Almighty who helped me make this module in less than an Hour Practically.