Saravanan666/pypi-org huggingface dataset:
Package: mcrp-cgam
MCNP-related packaged: Cell geometry algebraic manipulationsDescription of cell geometry can be interpreted as mathematical expression
containing addition (union) and multiplication (intersection) operations. This
package provides functions to parse the cell geometry description into an
algebraic expression and manipulate the latter.This is a needed part for MCNP -> CAD geometry converter, seehttps://github.com/travleev/mcnp2spaceclaim. Example MCNp input files that can
be processed with mcrp_cgam can be found there.To generate json file needed for MCNP -> CAD conversion, use the script provided with this package::>cgaminput[-maxterms100][-writebymodel]The first command line argument,inputis the name of MCNP input file. The
other arguments are optional.An integer number following the-maxtermskeyword specifies the maximal
number of pieces that represent the cell's geometry. In current implementation
a cell consisting of an intersection of unions is rearranged into a union of
intersections. For some cells, the number of terms in the latter representation
can be huge therefore cells with the number of terms exceeding the value
specified by-maxtermsare skipped.The keyword-writebycan be followed by one of the following strings:model,cellorpart, or their combination (written together, e.g.modelcell). Whenmodelis given, a single json file containing all
cells is generated.  Whencellis given, a separate json file is generated
for every cell. Whenpartis given, a separate json file is generated for
every cell's part (the part corresponds to each term in the union
representation of the cell geometry, see above).
Package: mcrp-splitters
MCNP-related packages: Splitter for text filesMCNP operates with several text files. The files can be large, this package
provide readers with possibility to access only specified part of the file.See alsomcrp_utilsandmcrp_cgam.ExampleGet all cell and surface cards of the input filei1.inp:frommcrp-splittersimportInputSplitters=inputSplitter('i1.inp')forcins.cards(blocks='cs',skipcomments=True):printc
Package: mcs
What is mcs?mcsis a small tool to synchronize multiple – file or HTTP based –Monticellorepositories.
Synchronization in this case is nothing more than copying missing versions from
one repository to another.How to use mcs?mcsis a runnable python package with an easy syntax: It currently supports
two sub-commands (copyandlist). Examples:mcs listhttp://www.squeaksource.com/AST/lists versions in the online
SqueakSource repository.mcsknows some common SqueakSource installations in
the world (as the SqueakInstallerclass does), so you could also writemcs list ss:AST.mcs copy ss:AST /tmp/ast_repocopies all versions from the online
SqueakSource repository to the localast_repofolder, only copying versions
that are not already in the local repository.The following repository types are supported:HTTP and HTTPS repositories: Use the standard URL syntax for those
repositories. You can specify your username and password using the formhttp://username:password@hostname/path/. Be aware that most SqueakSource
installations require the trailing slash.Known HTTP repositories: Use the syntaxalias:projectwhere alias is one
oflukas,squeak,squeakfoundation,ss,wiresongandhpi.Local repositories:mcswill try to open every URL not matching one of
the pattern before as file system paths. You can specify absolute and
relative paths, Windows UNC Paths should also work.If you need credentials to perform actions, you can provide themfor HTTP repositories in the known way, i.e.http://user:pass@host/path/for shortcuts using the syntaxshortcut:user:pass@path.Runmcs helpfor more information and optional switches.Known Issues(Windows only)If you use the mcs.exe provided throughdistribute, you
might have problems using the pattern switch. Those occur because the .exe
does the globbing itself, i.e. expands arguments with stars (*) if it
finds matching files. I think, this is a bug indistributeor rather itsconsole_scriptsimplementation, reported asdistribute issue 189. As a workaround you
can callpython-mmcsinstead ofmcs.Requirementsmcsuseshttplib2for HTTP
repositories.LicenseCopyright (c) 2010 Michael Grünewald

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Package: mcservercreator
Minecraft-Server-CreatorThis is a command line tool to help you create Minecraft server easilyInstallationMCSC is available in pypi. It can be installed viapipcommandpipinstallmcservercreatorFor Chinese users, you can added a-i https://pypi.tuna.tsinghua.edu.cn/simpleprefix to the command to useTsinghua tuna mirrorto speed up the installationpipinstallmcservercreator-ihttps://pypi.tuna.tsinghua.edu.cn/simpleUsageLet’s say you are going to create a new server in a folder namedmy_server. Then you can run the following commands:cdmy_server
python-mmcservercreatorThen you will enter the CLI, answer the given questions and your server will be ready automatically一个能让你更快更简单地创建 Minecraft 服务器的命令行工具安装MCSC 在 pypi 中可用。它可以通过 pip 命令安装：pipinstallmcservercreator对于国内用户，你可以在 pip 指令的末尾添加-i https://pypi.tuna.tsinghua.edu.cn/simple后缀来使用清华 pypi 镜像来加速 MCSC 的下载安装。pipinstallmcservercreator-ihttps://pypi.tuna.tsinghua.edu.cn/simple使用假设你想在my_server中创建一个新的服务端，那么你可以运行以下指令：cdmy_server
python-mmcservercreator然后你将会进入 CLI，回答给出的问题，服务端就会自动创建了
Package: mc-server-interaction
mc-server-interactionMC-Server-Interaction is a modern asyncio-based library for interacting with Minecraft servers on your local machine.FeaturesModern interface using asyncio and callbacksManage multiple serversCreate ServersStart and stop serversSend commandsRetrieve player informationOnline playersOP playersBanned playersWhitelisted playersInteract with WorldsCopy worlds from one server to anotherCreate and restore backups of worldsMonitor system resource usageCPURAMRoadmapExtend / improve existing featuresBukkit servers / easy plugin installation...RequirementsPython 3.8 minimumPoetry
Package: mc-server-setup
mc-server-pythonA Minecraft server setup script made using python3!Works on Linux/MacOS and now WindowsThis script lets you install a minecraft server on your computer very easily, you can customize it, and choose between a Vanilla server or a PaperMC(plugins+optimized). Hope you'll like it!InstallationTo begin, python3 is required to run my script, install it viahttps://www.python.org/downloads/.
(Java is also required of course, download it at java.com or with your package manager)After python3 is installed runpip install mc-server-setup.
When pip is done installing the package runmc_server_setup.Follow the instructions to get up and running!Follow meMy twitter:@Yot360My website(work in progress):https://yot-dev.com
Package: mcserver-wrapper
Minecraft server wrapper written in Python3 that extracts server status
and list of online players and more.Requires:Unix-like OS (preferred an only tested is Linux)Python3 (minimum version 3.3)Dependencies for Minecraft server (Java)For releasing are required also Pandoc and pypandoc to convert this
file.InstallationInstallation is done usingpip. Execute this command to install:sudo pip install mcserver-wrapperExpecting that Python3 is your default Python version, otherwise usepip3.MCWRAPPERUsagemcwrapper [-h] [--verbose] [--quiet] [--status-file] [--players-file]
          ...

This script is executing Minecraft server and reads its output. From output is
extracted server status and list of online players. And standard input can be
accessed by fifo file.

positional arguments:
  command             Command to be executed to start Minecraft server.

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         Increase verbose level of output
  --quiet, -q           Decrease verbose level of output
  --status-file, -s     Outputs server status to file "status"
  --players-file, -p    Outputs list of online players to file "players"
  --mod-file MOD_FILE, -m MOD_FILE
                        Prints periodically random line from given file as
                        message of the day.
  --mod-time MOD_TIME   Period used for message of the day in seconds. In
                        default 900 (15 minutes).How it worksScript is reading Minercraft server standard and error output. It’s
looking for known lines that signals change of server status and players
joining and leaving. Minecraft server output is well designed for
information parsing. Informations are exported to directory working
directory or websocket server.Input pipeThis is unix pipe. This file is located in working directory and named
asinput_pipe. This pipe is input to Minercraft server standard
input. If you have write access rights (default 640), then you can send
any command to Minecraft server by writing to this pipe.Server.pid fileThis file contains PID of Minecraft server process. This is used to
detect if server is running when status files exists. It has probably no
usage for user, but shouldn’t be tempered with.Status fileThis file is in working directory and is named asstatus. If it
exists, it specifies in what status is server in the moment. Status can
be:StartingRunningStoppingIf file not exists, then server is not running at all.Players fileThis file in in status directory and is named asplayers. If server
is running, it contains online players. Player name per line. If server
isn’t running, it content don’t have to be valid.Message of the dayThis prints to players various short messages in given interval. Message
is from file passed as –mod-file and it’s randomly selected line.
Package: mc-sim-fin
Montecarlo simulations/analysis for finance (equity simulator)An inspiration of the bookBUILDING WINNING ALGORITHMIC TRADING SYSTEMSof 'Kevin J. Davey' (chapter 7 detailed analysis)What's happened if your trades happened in an other order and you do that many times to produce statistics ? What are your chances to be ruin ? What's maximum drawdown you may met ?Giving the trade results to the library and it will help you to manage the risk.CAUTION : The simulator include assumption that your trades are independent one from the others : it may be the case if your bots make more than one trade at the same time on correlated markets (you can use a durbin watson statistic fromstatsmodels libraryto see that)InstallationUse the package managerpipto install montecarlo simulation finance.pipinstallmc-sim-finUsageFor the code example below you have 5000 dollar for trading, you stop trading if you capital go below 4000. Your backtest results show that you bot make one trade per day and alternate a win trade of 200 then a lose trade of 150 during the 2017 year.By default it simulate 1 year of trading with 10000 iterations (look at the documentation to modify this params).importpandasaspdimportnumpyasnpfrommc_sim_fin.mcimportmc_analysisdate_results=pd.date_range(start='1/1/2017',end='31/12/2017').tolist()profit_results=np.resize([200,-150],365)results=pd.DataFrame({'date_results':date_results,'profit_results':profit_results})mc_sims_results=mc_analysis(results,start_equity=5000,ruin_equity=4000)print(mc_sims_results)# print output{'risk_of_ruin_percent':0.156,'med_max_drawdown_percent':0.36,'med_profit_percent':1.83,'prob_profit_is_positive':0.9979}So I have 15.6% changes to be ruin, I can expect 36% max drawdown and 183% profit and I have 99.79% change to win money during the first year.DocumentationYou need more information about how the simulation work? You would like to contribute ?Look at thedocumentationLicenseMIT
Package: mcspy
A Python Library for Mobile Crowdsensing Problems,
with random, Epsilon-Greedy and New_MAB methods to build a MCS system and its group.Installationpip install mcspyAuthor contactHan Yaohui1407210129@csu.edu.cnPyPI Addresshttps://pypi.org/project/mcspy/Source Codeseehttps://github.com/Han-0107/mcspyScript examplehttps://github.com/Han-0107/New_MAB_in_MCSFunctionsBasic Functions1. constant_produce(num_of_system)
2. system_postprocess(relation_pre, workers, group_efficiency, times_total, num_of_group)
3. system_init(num_of_group, num_of_system)
4. normalization(x, num_of_system)
5. reselection_judge(workers, num_choice, i, num_of_group)
6. epsilon_produce(times)
7. random_unit(p)
8. list_init(start, stop, length)
9. result_produce(num_choice, pos_choice, workers, reselection_flag, num_of_group, relation_real, ability_of_workers)Matrix Functions1. matrix_assign(result_of_system, relation_total, relation_n, workers, num_of_group)
2. matrix_renewal(relation_n, relation_pre, relation_total, num_of_system)Printing Functions1. print_basic(relation_real, num_of_system, num_of_group, relation_var, abilities_var, ability_of_workers)
2. print_result(group_efficiency)
3. print_result_of_all(sum_of_result, iterations)
4. print_time(start, end)Working Functions1. group_work(workers, relation_real, num_of_group, ability_of_workers)
2. system_work_random(workers, num_of_group, num_of_system, relation_real, ability_of_workers)
3. system_work_epsilon(workers, min_index, person_efficiency, epsilon, num_of_system, num_of_group, relation_real, ability_of_workers)
4. system_work_mab(workers, min_index, person_efficiency, person_co, times, epsilon, num_of_system, num_of_group, relation_real, ability_of_workers):
Package: mcsrv-xImAnton
MCSRVManage your Minecraft Servers on Linux with a convenient CLIMore Documentation coming....bashrc functionPasting this function into your.bashrcallows for a quicker navigation
between server directories. By typingmcd <server-id>, your shell cd's into
the directory of the server. (mcd: short for mc-cd)functionmcd{if[-z"$1"]thenecho-e"Available Servers:\n$(mcsrvlist--propsi--plain|sed's/^/  /')"returnfieval"cd$(mcsrvdir$1)"}
Package: mcss-api
MCSS Python APIAllows for easy access to the MCSS API.Installationpip install mcss-apiUsageInitializationImport the mcss module:frommcssimport*Create the MCSS instance:Use this if you want the app to stop if the connection failsmcss=MCSS("http://localhost:25560",True)Use this if you want to manage failed states yourselfmcss=MCSS("http://localhost:25560",False)Example fail state management:ifmcss.com_open==False:print("Failed to connect to MCSS")Authenticating with the MCSS APImcss.token="YOUR_TOKEN"
Package: mCSSMapi
mCSSMAPI - Mini Cisco Smart Software Manager APIThe mcssmapi library is providing access to Cisco Smart Account licensing API with python.I needed to access licensing portal to get SLR licensing process a little bit easier.
I was inspired to create API by great apphttps://developer.cisco.com/codeexchange/github/repo/CiscoDevNet/smart-license-app/.Version(TODO)more API callslogging0.2 (4.11.2021)init.py fixfixed request to swapi with jsonremoved requirements.txt0.1 (21.6.2021)initial release with only slr reserve callPrerequisiteFor use the module you need to have:CCO/Cisco.com AccountValid Smart Account (SA) and Virtual Account in CSSMIOS-XE devices with Smart Licensing enabled image version (>16.10.1)Generated API access (Client ID and Client Secret)Installation$ pip install mcssmapiAPI accessFor accessing CSSM API you will need to request for API access onhttps://apidocs-prod.cisco.com/How to request API access is described here:https://anypoint.mulesoft.com/apiplatform/apx#/portals/organizations/1c92147b-332d-4f44-8c0e-ad3997b5e06d/apis/5418104/versions/102456/pages/425744UsageAll code is only an example. Values are not valid.import mcssmapi
import json

CLIENT_ID = "abcd1234"
CLIENT_SECRET = "secret1234"
SAD = "sadomain.com"
VA = "Test Account"
REQUEST_CODE = "CE-ZC9300-48P-4X:XDC240312LB5-A6rZG7jGd-75"

# init api instance
api = mcssmapi.Licensing(CLIENT_ID, CLIENT_SECRET)
# get oauth token
api.bearer_update()

# license definition

licenses = [
       {
           "quantity" : 1,
           "entitlementTag" : "regid.2018-05.com.cisco.C9300-DNA-E-48,1.0_e213fd3f-18f9-4940-a21c-617b92efdaae"
       },
       {
           "quantity" : 1,
           "entitlementTag" : "regid.2018-05.com.cisco.C9300-NW-E-48,1.0_52d2a0bd-de8a-480f-b70b-1d57e7738aec"
       },
   ]
result = api.reserve_license(SAD,VA,REQUEST_CODE, licenses)

print(json.dumps(result, indent=2)LicenseApp is released under the MIT License. See LICENSE for details.ContactGithub:https://github.com/mmikulic212/mcssmapi
Package: mcStalker
The MCStalker API WrapperAsync-Friendly wrapper for the MCStalker API.SOURCE-https://github.com/TheOnlyWayUp/mcStalkerApiWrapperWiki-https://github.com/TheOnlyWayUp/mcStalkerApiWrapper/wikiDiscord-https://discord.gg/bQhzbg27cmEndpoints currently supported -/stats/searchusername/searchserver/filterserversYOU NEED AN API KEY TO USE THIS WRAPPER.You can get a key athttps://mcstalker.com/registerImports -Non CachedfrommcStalker.mcStalkerimportPlayerfrommcStalker.mcStalkerimportServerfrommcStalker.mcStalkerimportStatsCachedfrommcStalker.cachedMCStalkerimportPlayerfrommcStalker.cachedMCStalkerimportServerfrommcStalker.cachedMCStalkerimportStatsUsage -Stats -frommcStalker.mcStalkerimportStats#Not cachedfrommcStalker.cachedMCStalkerimportStats#Cachedstats=Stats(apiKey)asyncio.run(stats.returnStats()->Stats._StatsObject)Player -frommcStalker.mcStalkerimportPlayer#Not cachedfrommcStalker.cachedMCStalkerimportPlayer#Cachedplayer=Player(apiKey)asyncio.run(player.returnPlayer(username)->Player._PlayerObject)Server -frommcStalker.mcStalkerimportServer#Not cachedfrommcStalker.cachedMCStalkerimportServer#Cachedserver=Server(apiKey)asyncio.run(server.returnServer(ip)->Server._ServerObject)asyncio.run(server.returnTopServers()->[Server._ServerObject,Server._ServerObject,...])Created by TheOnlyWayUp#1231 -https://github.com/TheOnlyWayUp/MCStalker created by SSouper -https://github.com/SSouper
Package: mcstats
py-mcpe-statsIntroductionmcstats (aka py-mcpe-stats) is a Python software that allows you to ping a Minecraft: Bedrock edition server for basic
information.InstallYou are required to have Python >= 3.6 installed on your computer.Install via pipRunpip install mcstatsin your terminal, and it will install the latest version of this project in your Python
environment.Install from sourceClone this repository and run the following in the root folder of this project:python setup.py build installUsageQuery with CLIAfter installation, themcstatscommand will be available in your Python environment. You can perform a query with
the following command:mcstats localhost.Example:$ mcstats play.lbsg.net
Ping id: 850756528
Server id: 123456789
Game id: MCPE
Server name: §3US§8> SM Become a Creeper
Game protocol: 422
Game version: 1.16.210
Num players: 5479
Max players: 38865
Hash code: -1
Motd: None
Gamemode: None
Hash code: 1189580737You can also specify the port with the-poption (e.g.:mcstats localhost -p 19133). For more options, please runmcstats --help.Use as a moduleYou can also use the API by writing the following code in your project:frommcstatsimportmcstatshost="localhost"port=19132withmcstats(host,port=port,timeout=10)asdata:# data is a StatsServerData objectprint(data)LicenseMIT © 2016-2021 w-gao
Package: mcstatus
MCStatusMcstatus provides an API and command line script to fetch publicly available data from Minecraft servers. Specifically, mcstatus retrieves data by using these protocols:Server List PingandQuery. Because of mcstatus, you do not need to fully understand those protocols and can instead skip straight to retrieving minecraft server data quickly in your own programs.InstallationMcstatus is available onPyPI, and can be installed trivially with:python3-mpipinstallmcstatusUsagePython APIJava EditionfrommcstatusimportJavaServer# You can pass the same address you'd enter into the address field in minecraft into the 'lookup' function# If you know the host and port, you may skip this and use JavaServer("example.org", 1234)server=JavaServer.lookup("example.org:1234")# 'status' is supported by all Minecraft servers that are version 1.7 or higher.# Don't expect the player list to always be complete, because many servers run# plugins that hide this information or limit the number of players returned or even# alter this list to contain fake players for purposes of having a custom message here.status=server.status()print(f"The server has{status.players.online}player(s) online and replied in{status.latency}ms")# 'ping' is supported by all Minecraft servers that are version 1.7 or higher.# It is included in a 'status' call, but is also exposed separate if you do not require the additional info.latency=server.ping()print(f"The server replied in{latency}ms")# 'query' has to be enabled in a server's server.properties file!# It may give more information than a ping, such as a full player list or mod information.query=server.query()print(f"The server has the following players online:{', '.join(query.players.names)}")Bedrock EditionfrommcstatusimportBedrockServer# You can pass the same address you'd enter into the address field in minecraft into the 'lookup' function# If you know the host and port, you may skip this and use BedrockServer("example.org", 19132)server=BedrockServer.lookup("example.org:19132")# 'status' is the only feature that is supported by Bedrock at this time.# In this case status includes players.online, latency, motd, map, gamemode, and players.max. (ex: status.gamemode)status=server.status()print(f"The server has{status.players.online}players online and replied in{status.latency}ms")See thedocumentationto find what you can do with our library!Command Line InterfaceThis only works with Java servers; Bedrock is not yet supported. Usemcstatus -hto see helpful information on how to use this script.LicenseMcstatus is licensed under the Apache 2.0 license. See LICENSE for full text.