semvec/pypi-packages huggingface dataset:
microservice-shared 0.4.7
Microservice Shared Package
License: MIT
Keywords: job search

# Microservice Shared Package

The Microservice Shared Package is a collection of utility functions, models, serializers, and other components shared across microservices in your project. This package is designed to simplify the development and maintenance of your microservices architecture.

## Installation

To install the Microservice Shared Package, use pip:

### Install Microservice shared package to microservices

Pip package manager

```python
pip install microservice-shared
```

Poetry package dependency manager

```python
poetry add microservice-shared
```

## Usage

```python
from microservice_shared.<utils-name> import <method-name>
```
simpleselenium 0.4.4
Python package to easily work with Selenium.
License: MIT
Requires Python: >=3.10,<4.0
Keywords: selenium,selenium python,selenium python automation,python automation

# Simple Selenium: Enhanced Tab Management for Selenium

Simplify your web automation tasks with **Simple Selenium**, a Python package that takes Selenium to the next level with streamlined tab management and additional features.

### Installation

Install **Simple Selenium** from PyPI with ease:

```bash
pip install simpleselenium
```

### Core Idea

In **Simple Selenium**, a `browser` contains multiple `tabs`, enabling you to interact with web pages more efficiently. You can perform various actions on both `Tab` and `Browser` objects, making web automation a breeze.

**Actions/Activities on `Tab` Objects:**
- Check tab status (open/closed)
- Switch to a specific tab
- Access page source, title, and headings
- Inject jQuery and select elements
- Perform actions on a specific tab (e.g., click, scroll)
- CSS selection made easy

**Actions/Activities on `Browser` Objects:**
- Open new tabs with URLs
- Retrieve a list of open tabs
- Switch to a specific tab (first, last, or any)
- Close a tab
- Close the entire browser

### Working with Driver Objects

A `driver` object is available on any `Tab` object, allowing you to access the browser/driver object and use Selenium methods when needed.

### Features

**Simple Selenium** offers a range of features to enhance your web automation tasks:
- Effortless tab management
- Seamless tab switching
- Real-time tab status tracking
- Convenient tab closure
- Built-in functions for scrolling, clicking, and more
- Access to the underlying Selenium `driver` object for advanced usage

### Usage

To get started with **Simple Selenium**, create a `Browser` object and open tabs using the `open` method:

#### Browser

```python
from simpleselenium import Browser, Tab

# Create a `Browser` object, specifying the browser name (e.g., "Chrome").
# The project automatically downloads drivers.

with Browser(name="Chrome", implicit_wait=10) as browser:
    google: Tab = browser.open("https://google.com")
    yahoo = browser.open("https://yahoo.com")
    bing = browser.open("https://bing.com")
    duck_duck = browser.open("https://duckduckgo.com/")

    # Scroll on the page (example)
    yahoo.scroll_to_bottom()

    # Working with tabs
    assert len(browser.tabs) == 4
    assert google in browser.tabs
    assert browser.tabs[0] == google

    for tab in browser.tabs:
        print(tab)

    print(browser.tabs)
    print(browser.current_tab)

    # Selecting elements with JQuery (using Browserjquery package)
    print(yahoo.jq("a"))

    # Selecting using CSS Selectors (no JQuery needed)
    for item in yahoo.css(".stream-items"):
        for a in item.css("a"):
            print(a, a.text)

    # Some `Tab` attributes/properties
    print(google.title)
    print(google.url)
    print(google.page_source)

    # Closing a tab
    browser.close_tab(bing)

    # Switching to a tab
    yahoo.switch()
    google.switch()

    # Accessing the driver object
    print(google.driver.title, google.title)
```

### TODO

- Complete documentation
kot-auth 0.1.0
The cloud authentication save system for your python applications !
License: MIT
Requires Python: >= 3

# KOT Auth

The cloud authentication save system for your python applications ! Control everything from one place and distribute all clients without effor.

[Website](https://kotdatabase.dev/) | [Discord](https://discord.gg/QtnKf532Er) | [Twitter](https://twitter.com/kot_database)




## Installation
You can install KOT by pip3:

```console
pip3 install kot_auth
```




# Implementing

## 1) Encrypted and Free Version
We suggest to use in your individual projects because this way not provide any control process so everyone can add credientials.

*Creating Your Free Cloud Key
```console
KOT cloud_key
```

```python
from kot_auth import KOT_Auth
auth = KOT_Auth("YOUR_ENCRYPTION_KEY", "YOUR_CLOUD_KEY")

auth.add_user("Name", "Pass")
#auth.delete_user("Name")

if auth.check("name", "Pass"): # In another.py, Diffferent Machine, Different Environment
    print("Verified")
```


## 2) Encrypted and Pro Version
We suggest to use in your individual projects because this way not provide any control process so everyone can add credientials.

*For this you should have [KOT Cloud Pro](https://docs.kotdatabase.dev/kot_cloud.html#cloud-pro--)

```python
from kot_auth import KOT_Auth_Pro
auth = KOT_Auth_Pro("YOUR_ENCRYPTION_KEY", "YOUR_CLOUD_PRO_KEY", "YOUR_ACCESS_KEY")

auth.add_user("Name", "Pass")
#auth.delete_user("Name")


if auth.check("name", "Pass"): # In another.py, Diffferent Machine, Different Environment
    print("Verified")
```

## 3) Encrypted and Secure Version
You can free for all purposes.


*For this you should have [KOT Cloud Dedicated](https://docs.kotdatabase.dev/kot_cloud.html#cloud-dedicated)


```python
from kot_auth import KOT_Auth_Dedicated
auth = KOT_Auth_Dedicated("YOUR_ENCRYPTION_KEY", "YOUR_DATABASE_NAME", "YOUR_ADMIN_PASSWORD", "YOUR_DEDICATED_KEY")

auth.add_user("Name", "Pass")
#auth.delete_user("Name")

auth = KOT_Auth_Dedicated("YOUR_DATABASE_NAME", "YOUR_USER_PASSWORD", "YOUR_DEDICATED_KEY")

if auth.check("name", "Pass"): # In another.py, Diffferent Machine, Different Environment and CUSTOMER
    print("Verified")
```





## Contributing
Contributions to KOT Auth are welcome! If you have any suggestions or find a bug, please open an issue on the GitHub repository. If you want to contribute code, please fork the repository and create a pull request.

## License
KOT Auth is released under the MIT License.

<h2 align="center">
    Contributors
</h2>
<p align="center">
    Thank you for your contribution!
</p>
<p align="center">
    <a href="https://github.com/KOT-database/KOT-Auth/graphs/contributors">
      <img src="https://contrib.rocks/image?repo=KOT-database/KOT-Auth" />
    </a>
</p>
SampleName 0.1.0
產生隨機英文名稱或英文名稱的中文翻譯
License: MIT
Requires Python: >=3.7

# SampleName
[![PyPI](https://img.shields.io/pypi/v/SampleName?color=%2334D058&label=pypi%20package)](https://pypi.org/project/SampleName/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/SampleName.svg)](https://pypi.org/project/SampleName/)
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/8loser/SampleName/push_test.yml)

產生隨機英文名稱或英文名稱的中文翻譯, 寫範例程式時可以用

# 名稱清單
 - [male.json](https://github.com/8loser/SampleName/blob/main/sampleName/male.json)
 - [female.json](https://github.com/8loser/SampleName/blob/main/sampleName/female.json)

# Install
```
pip install SampleName
```
# Methods
 - listCustom() - 從自訂清單隨機挑選不重複的
 - listNameEng() - 隨機取得男生/女生英文名字
 - listNameCht() - 隨機取得男生/女生英文名字翻譯
 - listMaleNameEng() - 隨機取得男生英文名稱
 - listMaleNameCht() - 隨機取得男生英文名字翻譯
 - listFemaleNameEng() - 隨機取得女生英文名字
 - listFemaleNameCht() - 隨機取得女生英文名字翻譯
# Using

## 建立物件
```
from sampleName import SampleName
smapleName = SampleName()
```

## 隨機取出 8 筆名稱 (預設 8 筆)
```
# 取出隨機男性/女性 英文 名稱
nameList = smapleName.listNameEng()
print(nameList)
# ['Kate', 'Cedric', 'Adrian', 'Yuri', 'Lara', 'Mildred', 'Craig', 'Oswald']

# 取出隨機男性/女性 中文 名稱
nameList = smapleName.listNameCht()
print(nameList)
# ['海頓', '藍道夫', '吉羅德', '妮可拉', '阿爾瓦', '比尤萊', '伊蒂絲', '珀莉']
```

## 隨機取出自訂筆數名稱
```
# 取出 4 筆女性英文名稱
nameList = smapleName.listFemaleNameEng(4)
print(nameList)
# ['Elizabeth', 'Irene', 'Candice', 'Myra']

# 取出 5 筆男性英文名稱翻譯
nameList = smapleName.listMaleNameCht(5)
print(nameList)
# ['班森', '愛格伯特', '扎威爾', '凱利', '菲力克斯']
```

## 從自訂清單內取得隨機名稱
```
nameList = ["愛爾默", "妮可拉", "特麗莎布藍達", "伯頓", "若娜"]
smapleName = SampleName(l)
nameList = smapleName.listCustom(2)
print(nameList)
# ['特麗莎布藍達', '愛爾默']
```

## 載入自訂名稱檔案
```
# nameList.json 內容
# ["愛爾默", "妮可拉", "特麗莎布藍達", "伯頓", "若娜"]
nameFile = 'nameList.json'
smapleName = SampleName(nameFile)
nameList = smapleName.listCustom(2)
print(nameList)
# ['妮可拉', '愛爾默']
```

# Development

 - VSCode
 - 開發環境佈置 [Remote-Containers](https://8loser.github.io/2022/05/13/Remote-Containers/)
   - 執行 remote container 會自動安裝 flake8, yapf 套件, 以及 pytest
 - 單元測試, 執行 `pytest`
   - [test_sampleName.py](https://github.com/8loser/SampleName/blob/main/tests/test_sampleName.py)
 - release 後會自動上傳到 PyPI, 版本號會用 tag
   - [release_action.yml](https://github.com/8loser/SampleName/blob/main/.github/workflows/release_action.yml)
   - [setup.py](https://github.com/8loser/SampleName/blob/main/setup.py)