semvec/pypi-packages huggingface dataset:
pytoontown 0.0.6
A Python API wrapper for the Toontown Rewritten and Corporate Clash APIs
Requires Python: >=3.6

# pytoontown
A Python API Wrapper for popular toontown games (Toontown Rewritten, Toontown: Corporate Clash). Get data on invasions, population, districts, news and more!

## Features

The Toontown Rewritten API Features 3 Classes:
* `ToontownRewrittenInvasion`
* `ToontownRewrittenPopulation`
* `ToontownRewrittenSillyMeter`

The Corporate Clash API features one class, `CorporateClashAPI`, which contains information on districts and the latest corporate clash news.

## Installing

`python3 -m pip install --upgrade pytoontown`

## Documentation

Read the documentation [here](https://github.com/Koalacards/pytoontown/blob/main/DOCS.md)

## Code Example

```python
    from pytoontown.toontownrewritten import *
    from pytoontown.corporateclash import *
    from time import sleep

    invasion = ToontownRewrittenInvasion()
    population = ToontownRewrittenPopulation()
    sillymeter = ToontownRewrittenSillyMeter()
    clash = CorporateClashAPI()

    #Refreshes all of the API data
    def refresh():
        invasion.refresh()
        population.refresh()
        sillymeter.refresh()
        clash.refresh()

    #Print out all of the API Data
    def print_data():
        refresh()
        #Retrieve the invasion data as an array.
        #For more information on `as_array`, view the documentation.
        print(f"TTR Invasions: {invasion.invasions(as_array=True)}")

        #Total population in TTR
        print(f"Total Population: {population.total_population}")

        #Population by district in TTR, represented as a dictionary
        print(f"Population by District: {population.population_by_district}")

        #TTR Silly Meter State, which is either "Active", "Reward", or "Inactive"
        print(f"Silly meter state: {sillymeter.state()}")

        #TTR Silly meter rewards (the three silly teams available)
        print(f"Silly Meter rewards: {sillymeter.rewards()}")

        #Description of the Silly teams available
        print(f"Silly meter reward descriptions: {sillymeter.reward_descriptions()}")

        #Silly Team winner (if in reward state)
        print(f"Silly meter winner: {sillymeter.winner()}")

        #how many points each silly team has
        print(f"Silly meter reward points: {sillymeter.reward_points()}")

        #Corporate clash district breakdown, represented by an array of district objects (dictionaries) (read documentation for more information)
        print(f"Corporate clash districts: {clash.districts()}")

        #Corporate clash news articles, represneted by an array of news articles (dictionaries) (read documentation for more information)
        print(f"Corporate clash news: {clash.news()}")

    
    #Print out the API data every 10 minutes
    while(True):
        print_data()
        time.sleep(600)

```
MOR-SM 1.0.4
moment-rate oriented slip distribution for SW4 Seismic Waves simulation
Keywords: MOR-SM,seismology,SW4,EEW,GMM

	 __  __  ____  _____        _____ __  __ 
	|  \/  |/ __ \|  __ \      / ____|  \/  |
	| \  / | |  | | |__) |____| (___ | \  / |
	| |\/| | |  | |  _  /______\___ \| |\/| |
	| |  | | |__| | | \ \      ____) | |  | |
	|_|  |_|\____/|_|  \_\    |_____/|_|  |_|
 
Copyright (C) by Almog Blaer 
 
# MOR-SM
### moment-rate oriented slip model

=======


## What is MOR-SM?

MOR-SM is moment-rate oriented slip model for seismic wave propagation simulation software - SW4.
The code collection a few command-line tools for manipulating slip function, time function and 
source time function for depicting the source physical properties.


## Installation


     pip install MOR-SM

or 

     git clone https://github.com/ABlaer/MOR-SM.git


## Depndencies

### Python modules

* argparse
* sys
* os
* pandas
* numpy
* matplotlib
* glob
* logging
* mpl_toolkits.mplot3d.axes3d

### Usage

     $ python MORSM.py [-v] [-l] [--logfile] [-p] [-o]

optional arguments:

     -h, --help            show this help message and exit
     -v, --verbose         verbose - print log messages to screen?
     -l {CRITICAL,ERROR,WARNING,INFO,DEBUG}, --log_level {CRITICAL,ERROR,WARNING,INFO,DEBUG}  Log level (Default: DEBUG). see Python's Logging module for more details
     --logfile log file name log to file
     -p parameter-file, --paramfile parameter-file Parameter file.
     -o output-file, --outfile output-file Output SW4 source commands file (see Chapter 11.2 in SW4 manual)

===============================================




## License

Copyright (c) 2021 by Almog Blaer.

MOR-SM is released under the GNU Lesser General Public License version 3 or any later version. See LICENSE.TXT for full details.


## Acknowledgment

MOR-SM is relies on research with  Ben-Gurion University of the Negev and Geological Survey of Israel.
I gratefully acknowledge Dr. Ran Nof and Prof. Michael Tsesarsky for taking part in this process.