semvec/pypi-packages huggingface dataset:
map-network-viz 0.0.10
A small wrapper for visualizing street networks and making artistic maps with OpenStreetMap and Networkx.
Requires Python: >=3.8

# map-network-viz

### Description 

This library contains functionality for visualizing street networks and making artistic maps with OpenStreetMap and Networkx. It works by wrapping around the `osmnx` library to pull city network data (nodes and edges), but it is specifically designed to help end users make highly customizable, color-coded maps!

### Installation

```bash
python3 -m pip install map-network-viz
```

### Example Usage

```python
from map_network_viz import *
PALETTE = ["#FFB7C3", "#750d37", "#F57A80", "#F6BD60", "#AAE28D", "#aadaba", "#27BACE", "#F0F2A6"]
generate_map("Portland, Oregon, USA", PALETTE)
```

```python
from map_network_viz import *
PALETTE = ["#FFB7C3", "#750d37", "#F57A80", "#F6BD60", "#AAE28D", "#aadaba", "#27BACE", "#F0F2A6"]
generate_map("Tokyo, Japan", PALETTE, distance_km=5000, color_code_by='length', include_legend=True, save=False)
```

### Map Gallery

<img src="https://github.com/sejaldua/map-network-viz/raw/master/maps/Boston.png" width="200" height="200"/><img src="https://github.com/sejaldua/map-network-viz/raw/master/maps/Vancouver.png" width="200" height="200"/><img src="https://github.com/sejaldua/map-network-viz/raw/master/maps/Portland_A.png" width="200" height="200"/>
threading-manager 0.0.8
manage spawned threads
Requires Python: >=3.6
Keywords: threading,threads,thread,thread manager

# threading_manager (v0.0.8)

## DESCRIPTION_SHORT
Manage spawned threads

## DESCRIPTION_LONG
designed to working with spawned threads


## Features
1. use different managers for different funcs/methods if needed  
2. use just one decorator to spawn threads from func / methods  
3. keep all spawned threads in list by ThreadItem objects  
4. ThreadItem keeps result/exx/is_alive attributes!  
5. use wait_all()  


********************************************************************************
## License
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).


## Release history
See the [HISTORY.md](HISTORY.md) file for release history.


## Installation
```commandline
pip install threading-manager
```


## Import
```python
from threading_manager import *
```


********************************************************************************
## USAGE EXAMPLES
See tests and sourcecode for other examples.

------------------------------
### 1. example1.py
```python
from threading_manager import *

count = 5
time_start = time.time()


# define victim ------------------
class ThreadManager1(ThreadsManager):
    pass


class Cls:
    @ThreadManager1().decorator__to_thread
    def func1(self, num):
        time.sleep(1)
        return num * 1000


# spawn ------------------
for i in range(count):
    assert Cls().func1(i) is None

assert ThreadManager1().count == count
ThreadManager1().wait_all()
assert {item.result for item in ThreadManager1().THREADS} == {num * 1000 for num in range(count)}

ThreadManager1().clear()

# spawn ------------------
for i in range(count):
    assert Cls().func1(i) is None
```

********************************************************************************
singleton-meta 0.1.1
create perfect singletons
Requires Python: >=3.6
Keywords: singleton,singleton meta,singleton call,singleton new

# singleton_meta (v0.1.1)

## DESCRIPTION_SHORT
Create perfect singletons

## DESCRIPTION_LONG
designed for singletons creation


## Features
1. perfect singleton (maybe thread safe!)  
2. collect all instances  
3. check correct instantiating singletons in tree project  


********************************************************************************
## License
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).


## Release history
See the [HISTORY.md](HISTORY.md) file for release history.


## Installation
```commandline
pip install singleton-meta
```


## Import
```python
from singleton_meta import *
```


********************************************************************************
## USAGE EXAMPLES
See tests and sourcecode for other examples.

------------------------------
### 1. example1.py
```python
from singleton_meta import *

class MySingleton(SingletonByCallMeta):
    pass

class MySingleton2(SingletonByCallMeta):
    pass

class MySingleton(metaclass=SingletonMetaCallClass):
    pass


# ===============================
# 2. access to created instances
from singleton_meta import *

class Victim1(SingletonByCallMeta):
    attr = 1

class Victim2(SingletonByCallMeta):
    attr = 2

assert SingletonByCallMeta._SINGLETONS == []
Victim1()
assert SingletonByCallMeta._SINGLETONS == [Victim1(), ]
assert Victim1._SINGLETONS == [Victim1(), ]
assert Victim1()._SINGLETONS == [Victim1(), ]
Victim2()
assert SingletonByCallMeta._SINGLETONS == [Victim1(), Victim2(), ]


# ===============================
# 3. NOTICE: all your Singletons must be only last classes!
# don't use nesting from any Your Singletons!
from singleton_meta import *

class MySingleton(SingletonByCallMeta):  # OK
    pass

class MySingleton2(MySingleton):  # WRONG
    pass
```

********************************************************************************
cli-user 0.0.7
send commands into system terminal
Requires Python: >=3.6
Keywords: cli,cli user,cli sender,os terminal,os terminal sender,os terminal user

# cli_user (v0.0.7)

## DESCRIPTION_SHORT
Send commands into system terminal

## DESCRIPTION_LONG
designed to send commands into os terminal


## Features
1. send commands into OS terminal  
2. check if cli commands are accessible (special utilities is installed)  
3. access to standard parts of result in a simple ready-to-use form (stdout/stderr/retcode/full state)  
4. use batch timeout for list  
5. till_first_true  
6. counter/counter_in_list  


********************************************************************************
## License
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).


## Release history
See the [HISTORY.md](HISTORY.md) file for release history.


## Installation
```commandline
pip install cli-user
```


## Import
```python
from cli_user import *
```


********************************************************************************
## USAGE EXAMPLES
See tests and sourcecode for other examples.

------------------------------
### 1. example1.py
```python
from cli_user import *

victim = CliUser()
victim.send("ping localhost", timeout=0.1)
victim.print_state()
"""
==================================================
[#####################ERROR#####################]
self.counter=1
self.counter_in_list=0
self.last_cmd='ping localhost'
self.last_duration=0.109938
self.last_finished=True
self.last_finished_success=False
self.last_retcode=None
--------------------------------------------------
self.last_stdout=
--------------------------------------------------
self.last_stderr=
--------------------------------------------------
self.last_exx_timeout=Exx_CliTimeout("TimeoutExpired('ping localhost', 0.1)")
==================================================
"""

victim.send("python --version", timeout=1)
victim.print_state()
"""
==================================================
self.counter=2
self.counter_in_list=0
self.last_cmd='python --version'
self.last_duration=0.087947
self.last_finished=True
self.last_finished_success=True
self.last_retcode=0
--------------------------------------------------
self.last_stdout=
	|'Python 3.12.1'
	|''
--------------------------------------------------
self.last_stderr=
--------------------------------------------------
self.last_exx_timeout=None
==================================================
"""
```

********************************************************************************
mcdecoder 0.1.1
The generator of a machine code decoder, transforming a user-defined machine code specification into decoder codes.
Requires Python: >=3.8

# README: mcdecoder

The mcdecoder (Machine Code Decoder) is a set of tools to implement a machine code decoder. It includes tools to:

- Generate a decoder for a user-defined machine code specification
- Emulate a decoder for a binary data and show decoded result
- Check the integrity of a machine code specification
- etc.

Currently, the mcdecoder only generates decoders in C language.

## Quickstart

1. Define your machine code specification

    ```yaml
    # arm.yaml
    machine:
      byteorder: little
    instructions:
      - name: add_immediate_a1
        format: xxxx:cond|00|1|0100|x:S|xxxx:Rn|xxxx:Rd|xxxx xxxx xxxx:imm12
    ```

2. Generate a decoder

    ```bash
    mcdecoder generate arm.yaml
    ```

3. Use the decoder from a C client

    ```c
    const uint8_t kMachineCodes[] = { 0x04, 0xB0, 0x8D, 0xE2, };
    DecodeRequest request;
    DecodeResult result;
    bool succeeded;

    request.codes = &kMachineCodes[0];
    succeeded = DecodeInstruction(&request, &result);
    ```

For more details, follow Installation steps below and go on to [Quickstart tutorial](https://wildlarva.github.io/mcdecoder/quickstart.html).

## Who is mcdecoder for

- Developers of a CPU emulator
  - To implement the decoder part of an emulator
- Developers of a static analyzer for machine codes
  - To implement the decoder part of an analyzer
- Learners of the basics about machine codes
  - Hands-on approach to learn: write and test actual machine codes

Implementing and maintaining a decoder are tough and cumbersome. The mcdecoder soothes these pains by generating a decoder.
The mcdecoder was originally developed for [athrill](https://github.com/toppers/athrill), a CPU emulator.
It is now independent from athrill.

## Requirements

- Python 3.8 and above (with pip)

## Installation

```bash
python3 -m pip install mcdecoder
```

## License

The mcdecoder uses MIT License. See [LICENSE](https://github.com/wildlarva/mcdecoder/blob/master/LICENSE) for more details.

## More details about usage

See [documents for mcdecoder users](https://wildlarva.github.io/mcdecoder/).

## For developers of mcdecoder

See [documents for mcdecoder developers](https://wildlarva.github.io/mcdecoder/dev_docs.html).