semvec/pypi-packages huggingface dataset:
single-char-counter-by-ng 1.1.10
Application that takes a string or file and returns the number of all characters in the string or file occurring only once.
Requires Python: >=3.10

# Single char counter

## Installation
Clone this repository to your local machine:

```bash
pip install single-char-counter-by-ng
```

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install requirements:

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

## Summary
Application that takes a string or file and returns the number of all characters in the string or file occurring only once.
The function was tested using *pytest*. The function is in the **single_char_counter_by_ng** folder and the tests are in the **tests** folder. The **test_count_single_char** folder contains tests and parameterized data. For convenience, some **\_\_init\_\_** already have modules imported. <br/> 

## Usage

```python
from single_char_counter_by_ng import (count_single_char, 
                                       count_single_char_in_file)

count_single_char('HelLo') # ---> 5

count_single_char('HelLo', case_insensitive=True) # ---> 3

# file.txt ---> 'HelLo'
count_single_char_in_file('path_to_file/file.txt') # ---> 5

count_single_char_in_file('path_to_file/file.txt', case_insensitive=True) # ---> 3
```

### Also implemented command-line interface(**CLI**):

```bash
python count_single_char.py --string “your string”
```

```bash
python count_single_char.py -s “your string”
```

or

```bash
python count_single_char.py --file "path_to_text_file"
```

```bash
python count_single_char.py -f "path_to_text_file"
```

There is also a "*-i*" parameter that can be specified so that the result is case insensitive:

```bash
python count_single_char.py -s “your string” -i
```

If you passed two parameters, the parameter '**--file**' have **higher** priority:

```bash
python collect_framework.py  --string “your string” --file path_to_text_file
```

## Used

- **[Pytest](https://docs.pytest.org/en/latest/)**
- **[Coverage](https://coverage.readthedocs.io/en/coverage-5.1/#quick-start)**
- **[Argparse](https://docs.python.org/3.3/library/argparse.html)**
- **[Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)**

## License

[MIT](https://choosealicense.com/licenses/mit/)
ar-site-maker 1.0.1
A tool to create a website where 3D models can be viewed using AR technology.

# AR Site Maker
A tool to create a website where 3D models can be viewed using AR technology.
You can make simple marker based AR site that can view 3D model. 
Simply specify the site name, 3D model file (.glb), and marker image (URL).
You can try demo project by accessing below QR code and holding up QR code a camera after site is loaded.
You have to allow camera access from demo site.

<img src="sample_project/marker/marker_add_padding.png" width="400px">

## How to install
ar-site-maker is available through pip and [PyPi](https://pypi.org/project/ar-site-maker/). You need python3.
```
pip install ar-site-maker
```
You can confirm installation by executing ar-site-maker command.
```
ar-site-maker 
```
You can show top page like this if ar-site-maker is successfully installed.
```
Ar Site Maker {version}
 Documentation is here https://github.com/enfy-space/ArSiteMaker
```

## Usage
Usage is very easy!
<br>
### Preparing File
What you have to prepare is below.
* <b>.glb file</b>
  Sorry! we don't support .gltf file yet 🥹.
  <br>Please make sure to your model is

  * located around center of coordinate:(0,0,0)
  * not buried in plane (elevation=0)

* <b> marker image or site URL </b>
  <br>Generated site is marker-based AR so Object is appear on the marker.
  There are two-way to make marker. 
  
  * image : You can set your favorite image as marker. 
  We recommend as simple and square as image possible.
  * URL : If specify your site URL, ar-site-maker set QR-code as marker automatically.

### Command Usage
Basic usage of command is below. <br>
If you want to use your favorite image as marker
```
 ar-site-maker make <your project name> <glb file path> -i <image path>
```
If you want to use QR code of your site as marker
```
 ar-site-maker make <your project name> <glb file path> -u <url>
```
#### Options
* title

  The site title will be the same as the project name if not specified.
If you want to set title arbitrarily, you can use --site_title option like this.
  ```
  ar-site-maker make <your project name> <glb file path> -u <url> --site_title <title>
  ```

* scale

  If you want to adjust object scale, you can use --scale option like this.
  ```
  ar-site-maker make <your project name> <glb file path> -u <url> --scale <scale>
  ```
* animation

  If you want to add rotate animation to object, you can add -a (or --animation) option like this.
  ```
  ar-site-maker make <your project name> <glb file path> -u <url> -a 
  ```

of course! you can open help like this
```
  ar-site-maker make -h 
```

#### Output
Your exported data is in directory named fot the project.
You can browse exported site by accessing index.html. The marker is stored in marker directory.
You can use marker.png or marker_add_padding.png ; marker added padding as marker. 
```
project name
├── index.html
├── marker
│   ├── marker.patt
│   ├── marker.png
│   └── marker_add_padding.png
└── model
    └── model.glb
```