semvec/pypi-packages huggingface dataset:
macuitest 0.7.43
A simple UI testing framework for macOS
License: MIT
Requires Python: >=3.7.0
Keywords: macOS,Testing,E2E,UI,Automator,Accessibility

![Tests](https://github.com/andriykislitsyn/macuitest/actions/workflows/tests.yaml/badge.svg)

# MacUITest

> A simple framework that helps to create functional and UI tests against almost any macOS application.

- Created to help testers to automate their routine tasks with ease and help me with structuring my experience;
- I'll be glad to receive suggestions on evolution of the project!

## Tips
- Allow Accessibility access in a Security&Privacy pane of System Preferences;
- You might be asked to allow various access rights anyway, those are new macOS restrictions you cannot easily avoid from Python, just allow them;
- When calling ObjC mouse wrapper a Python Launcher will show up in Dock. To avoid this behavior, you need to add `LSUIElement` `-string "1"` to a Python.app property list. Mine was located easily by running `brew --prefix python3`. It'll be under Frameworks -> Python.framework -> Resources;
- Get UI Browser app, it helps to locate AppleScript locators of the elements on your screen, very helpful;

## Table of Contents
- [Installation](#installation)
- [Features](#features)
- [Examples](#examples)

---
## Installation

- Install a modern Python version (at least 3.6): `brew install python3`
- If OCR capabilities required, install Tesseract: `brew install tesseract`
- Update pip's setup tools: `pip3 install --upgrade pip setuptools wheel`
- Install the package: `pip3 install macuitest` and you should be ready to go

---
## Features
- Many of useful operations on macOS are introduced in a `macuitest.lib.operating_system` package. A `macos` module inside the package will allow you to manipulate files, processes, change some system settings, etc.;
- An `application` module inside `macuitest.lib.apps` may describe almost any GUI macOS app. Creating an instance of which will allow you to perform launch/quit operations, read some of its attributes, have basic control over its main window, etc.;
- `applescript_wrapper` module under `macuitest.lib.applescript_lib` allows to run some AppleScript commands;
- And last but not least, you can describe most if not every element of an application using `applescript_element`, `native_element` and `ui_element` modules inside `macuitest.lib.elements`. They allow working with AppleScript, PyObjC translated (Native) and UI (built on screenshots) elements retrospectively.

---
## Examples

```pythonstub
from macuitest.lib.apps.application import Application
from macuitest.lib.elements.applescript_element import ASElement

test_app = 'Calculator'
calculator = Application(test_app)

button_one = ASElement('button "1" of group 2 of window 1', process=test_app)
button_zero = ASElement('button "0" of group 2 of window 1', process=test_app)
input_field = ASElement('static text 1 of group 1 of window 1', process=test_app)

calculator.launch()
button_one.click_mouse()
button_zero.click_mouse()
button_one.click_mouse()
assert input_field.text == '101'  # Hopefully you get 101 there :)
```
Finstein 3.2
A library for finacial calculations
License: MIT

# Welcome to Finstein Library!

Finstein is a Library for performing various financial calculation tasks. Check DOCS for more info.

This Guide will help you set up the library.

**Project Report** - *https://docs.google.com/document/d/1LR-W4EDnaMJOEfQIT7pVvhHi-7t5b51rz76mmLPxPdg/edit?usp=sharing*

**Directory tree:**
 - setup.py
 - Tests
 - Finstein
 - DOCS
 - README.md
 

## Running Tests
- All test modules can be run at a time by simply opening a shell/cmd terminal in the **Tests** directory and typing -``python -m unittest``
- To run a particular test type :``python -m unittest test_1.py `` 
**Note: unittest should be installed on your system.**


## Installing and Uninstalling the Library
- Finstein Library can be directly installed by typing ``pip install Finstein`` in the terminal.
- The Finstein Library can be installed be running the following command in the root directory of the library folder as well after cloning the repo  : ``pip install .``
- Dependencies : **Scipy, Numpy** (will be automatically installed during pip installation of Library)
- Also the library can be easily uninstalled using the following pip command : ``pip uninstall Finstein``

## Accessing & Generating Docs

- To access the docs in HTML version, a shortcut to index.html is provided in DOCS folder.
- To generate the new docs, first delete the Finstein.rst file present in the folder to generate a new one. Then enter the following commands in  shell/cmd terminal in the DOCS folder : (**Note** - Generate docs everytime the code is updated )

 ``sphinx-apidoc -o . ../Finstein/``

 ``make html``
finstein 2.2
A library for finacial calculations
License: MIT

# Welcome to Finstein Library!

Finstein is a Library for performing various financial calculation tasks. Check DOCS for more info.

This Guide will help you set up the library.

**Project Report** - *https://docs.google.com/document/d/1LR-W4EDnaMJOEfQIT7pVvhHi-7t5b51rz76mmLPxPdg/edit?usp=sharing*

**Directory tree:**
 - setup.py
 - Tests
 - Finstein
 - DOCS
 - README.md
 

## Running Tests
- All test modules can be run at a time by simply opening a shell/cmd terminal in the **Tests** directory and typing -``python -m unittest``
- To run a particular test type :``python -m unittest test_1.py `` 
**Note: unittest should be installed on your system.**


## Installing and Uninstalling the Library
- Finstein Library can be directly installed by typing ``pip install Finstein`` in the terminal.
- The Finstein Library can be installed be running the following command in the root directory of the library folder as well after cloning the repo  : ``pip install .``
- Dependencies : **Scipy, Numpy** (will be automatically installed during pip installation of Library)
- Also the library can be easily uninstalled using the following pip command : ``pip uninstall Finstein``

## Accessing & Generating Docs

- To access the docs in HTML version, a shortcut to index.html is provided in DOCS folder.
- To generate the new docs, first delete the Finstein.rst file present in the folder to generate a new one. Then enter the following commands in  shell/cmd terminal in the DOCS folder : (**Note** - Generate docs everytime the code is updated )

 ``sphinx-apidoc -o . ../Finstein/``

 ``make html``
kw618 0.3.1
integrated commonly used third-party libraries to personal use
License: MIT
Requires Python: >=3.6

# kw618

#### Description
kw618 personal pkg repo

#### Software Architecture
Software architecture description

#### Installation

1.  xxxx
2.  xxxx
3.  xxxx

#### Instructions

1.  xxxx
2.  xxxx
3.  xxxx

#### Contribution

1.  Fork the repository
2.  Create Feat_xxx branch
3.  Commit your code
4.  Create Pull Request


#### Gitee Feature

1.  You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2.  Gitee blog [blog.gitee.com](https://blog.gitee.com)
3.  Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4.  The most valuable open source project [GVP](https://gitee.com/gvp)
5.  The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6.  The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)