Saravanan666/pypi-org huggingface dataset:
Package: oimodeler
Oimodeler is a modular modelling tool for optical interferometryInstallation:https://oimodeler.readthedocs.io/en/latest/installation.htmlUsage:https://oimodeler.readthedocs.io/en/latest/getting_started.htmlDocumentationhttps://oimodeler.readthedocs.io/en/latest/Contributing:https://oimodeler.readthedocs.io/en/latest/expandingSoftware.htmlSource code:https://github.com/oimodeler/oimodelerBug reports:https://github.com/oimodeler/oimodeler/issuesFeaturesModules:oimModel: Create models with various components as bricksoimComponent: component for building modelsoimParam: Component parameters and parameters interpolatorsoimData:  Handle interferometric, spectroscopic and photometric dataoimDataFilter: Filtering and modifying data (wavlengths range cut, smoothing, removing flags...)oimSimulator: Main class holding evertyhing together and producing final results :plots, tables...oimFitter: Define and perform model-fittingoimPlot: Plotting toolsoimUtils: Various utility for optical-interferometry:warning: Under Development :warning:The following modules have only been partially implementedoimModel:  Basic functionnalities for building model from all kind of componentsoimComponent: Many basics Fourier-based components, possiblity to build radial profile and images based components, import of image at fits format and a few advanced components (kinematic disk, fast-rotator)oimParam: Possibility to link parameters, normalize them and various interpolators in wavelength and timeoimData: Interferometric data and basic wrapper for photometric/spectroscopic dataoimDataFilter: Wavelength range cut and shift, data smoothing and binning, datatype selection, flagging based on criteriaoimSimulator: Simulated data and chi2 computation with filteringoimFitter:  Basic MCMC fitter based on emcee module.oimPlot: Various plots for oifits data (see examples below)oimUtils: Helpers for oifits format: retrieve baselines info, create new tables, manipulated data...
)ExamplesFor more examples see:https://oimodeler.readthedocs.io/en/latest/examples.htmlVarious example scripts are available in theexamplesdirectory.This plot has been created with thecreateModelChromatic.pyscript:Here is the resulting plot from theoimodel_Create_simulator_data.pyscript.
It plots data of a partly resolved binary created with:theASPROsoftware from JMMC (including realistic noise)oimodeler using a shifted uniform disk + unresolved componentHere is a plot showing a model consisting of a fast rotating star plus a uniform disk.
Chromatic images of fast rotator are computed with an external function encapsulated into a oimodeler component.
The uniform disk is a simple Fourier-based component. The code is in thecreateCustomComponentImageFastRotator.pyContactAnthony Meilland
Package: oinkwall
Oinkwall is a python library that provides a highly programmable way to
help you to generate low level Linux IPTables rule files and hosts.allow
rules. It aims at handling the boring parts (resolving domain names,
putting the IPv4 and IPv6 addresses in the right place) for you, while
it completely leaves you with the freedom to use raw iptables commands
as much as possible.Unlike most firewall tools, it does not try to impose using any higher
level abstractions on you. It operates on the level that programs like
iptables-save and iptables-restore work on. It simply helps you to
easier organize your iptables rules, if you like writing them directly
and adding them together programmatically.The library can be used to assemble a firewall for a single host or
router, or for generating a lot of them, as building your own templating
system or higher level tools 100% tailored to your own specific
situation and your low level rule needs should be pretty easy.Read the full README in README.md orread it on github.
Package: ois
Optimal Image Subtraction (OIS)OISis a Python package to perform optimal image subtraction on astronomical images.
It also has a companion command-line program written entirely in C.OIS offers different methods to subtract images:Modulated multi-Gaussian kernel (as described inAlard&Lupton (1998))Delta basis kernel (as described inBramich (2010))Adaptive Delta Basis kernel (as described inMiller (2008))Each method can (optionally) simultaneously fit and remove common background.You can find a Jupyter notebook example with the main features athttp://toros-astro.github.io/ois.InstallationTo install the Python module:$ pip install oisTo instal and run the C command-line program, download this repo to your local machine and execute:$ git clone https://github.com/toros-astro/ois.git
$ cd ois
$ make ois
$ ./ois --helpThe C command-line program is somewhat limited in functionality compared to the Python module.
Please see thedocumentationfor more information.Minimal usage example>>> from ois import optimal_system
>>> diff = optimal_system(image, image_ref)[0]Check thedocumentationfor a full tutorial.Other Parameters:kernelshape: shape of the kernel to use. Must be of odd size.bkgdegree: degree of the polynomial to fit the background.
To turn off background fitting set this to None.method: One of the following stringsBramich: A Delta basis for the kernel (all pixels fit
independently). Default method.AdaptiveBramich: Same as Bramich, but with a polynomial variation across the image. It needs the parameterpoly_degree, which is the polynomial degree of the variation.Alard-Lupton: A modulated multi-Gaussian kernel.
It needs thegausslistkeyword.gausslistis a list of dictionaries containing data of the gaussians used in the decomposition of the kernel. Dictionary keywords are: center, sx, sy, modPolyDegExtra parameters are passed to the individual methods.poly_degree: needed only forAdaptiveBramich. It is the degree
of the polynomial for the kernel spatial variation.gausslist: needed only forAlard-Lupton. A list of dictionaries with info for the modulated multi-Gaussian. Dictionary keys are:center: a (row, column) tuple for the center of the Gaussian. Default: kernel center.modPolyDeg: the degree of the modulating polynomial. Default: 2sx: sigma in x direction. Default: 2.sy: sigma in y direction. Deafult: 2.Author: Martin Beroizmartinberoiz@gmail.com
Package: ois-api-client
ois_api_clientOnline Invoice System API ClientAPI Version: 3.0The library is under active development!What is it?ois_api_clientis a python client library for the hungarian, offical Online Invoice System public API.
You can find the API documentation here:https://onlineszamla.nav.gov.hu/dokumentaciokImplemented API requests:query_invoice_digestquery_invoice_datatoken_exchangeUser guideGetting startedError handlingInvoice structureLicenseMIT
Package: oisin
Oisín: Wave Function Collapse for poetryThis is inpv's fork of mewo2's code for performing theWaveFunctionCollapsealgorithm on poems. It mashes up sentence fragments from a given corpus to produce poems with fixed metric forms. The output can look like this:It is named after Oisín, son of Fionn mac Cumhaill, the great poet-warrior of Irish mythology. He famously married Niamh, daughter of the sea god Manannán mac Lir, and disappeared over the waves to Tír na nÓg. Waves, poetry, etc, you get it.The name is pronounced [ɔ'ʃiːnʲ] (ush-EEN).Support, licensing, ongoing developmentOriginal author (mewo2):This is experimental code, for an experiment that I never really finished.The code is available under theMIT license, so you can fork it,
improve it, learn from it, build upon it. However, I have no interest in
maintaining it as an ongoing open source project, nor in providing support for
it. Pull requests will probably be either ignored or closed.If you do make something interesting with this code, please do still let me know! I'm sorry that I can't provide any support, but I am still genuinely interested in seeing creative applications of the code.inpv:I plan on making this code more usable as a Python module in the future, unveiling its hidden possibilities.
Package: ois-sdk
# OIS SDK for Python[![Build Status](https://github.com/shanhe-nsccjn/ois-sdk-python/workflows/Unit%20Test/badge.svg?branch=master)](https://github.com/shanhe-nsccjn/ois-sdk-python/actions?query=workflow%3A%22Unit+Test%22)
[![API Reference](http://img.shields.io/badge/api-reference-green.svg)](https://docsv3.shanhe.com/ois/)
[![License](http://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/shanhe-nsccjn/ois-sdk-python/blob/master/LICENSE)
[![Join the chat](https://img.shields.io/badge/chat-online-blue?style=flat&logo=zulip)](https://ois.zulipchat.com/join/nofzrqd5a5skt5ebnaor5b7d/)English | [中文](README_zh-CN.md)The official OIS SDK for the Python programming language.Before you start using the SDK, make sure you have a basic understanding of the concepts of [OIS object storage](https://docsv3.shanhe.com/ois/api/common/overview.html) (such as Zone, Service, Bucket, Object, etc.).This SDK try to keep a one-to-one correspondence with the methods on the [ShanHe OIS object storage documentation](https://docsv3.shanhe.com/ois/api/). For details of each method, please refer to the corresponding chapter in the link.## Quick StartNow you are ready to code. You can read the detailed guides in the list below to have a clear understanding.[Preparation](./docs/prepare.md)[Installation](./docs/install.md)[Configuration](./docs/config.md)[Service Initialization](./docs/service.md)[Code Examples](./docs/examples.md)Checkout our [releases](https://github.com/shanhe-nsccjn/ois-sdk-python/releases) and [change log](./CHANGELOG.md) for information about the latest features, bug fixes and new ideas.## Reference Documentations[OIS Documentation](https://docsv3.shanhe.com/ois/index.html)[OIS Guide](https://docsv3.shanhe.com/ois/guide/index.html)[OIS APIs](https://docsv3.shanhe.com/ois/api/index.html)## ContributingPlease see [Contributing Guidelines](./CONTRIBUTING.md) of this project before submitting patches.## LICENSEThe Apache License (Version 2.0, January 2004).
Package: oitei
oitei: OpenITI TEI ConverterThis Python library converts anOpenITI mARkdowndocument and returns a TEI-XML string based on theOpenITI TEI Schema.InstallationSet up a virtual environment withvenvpython3-mvenv.envActivate the virtual environmentsource.env/bin/activateInstallpythonsetup.pyinstallUsageimportoiteimd=open("markdown.md","r").read()md.close()tei_string=oitei.convert(md).tostring()# or just cast to string with str()withopen('tei.xml','w')aswriter:writer.write(tei_string)CoverageThis converter is based on theOpenITI mARkdown Parser, which covers the mARkdown specification.The most common structures are currently converted to TEI, but other less common ones are still missing:MorphologicalPatternOpenTagAutoOpenTagUserRouteDistRouteFromRouteTowaThere are also plans to convert to TEI YAML metadata provided with mARkdown files in the OpenITI corpus.
Package: ojet
Ojet packageIntroductionOracle JET is a great HTML application builder. The only flaw of this generator is the need to know both HTML and JAVASCRIPT!This "ojet" package is a Python 3 wrapper around Oracle JET. Its aim is to hide as much as possible the complexity of the HTML and JAVASCRIPT code.Furthurmore "ojet" can be included in a jupyter notebook in order to add sophisticated HTML views or to help to test an "ojet" application.License"ojet" itself has a GNU general license, but the result of "ojet" must conform to the rules edicted by Oracle about the "Oracle JET" license.InstallationInstall, upgrade and uninstall ojet with the following commands:::$ pip3 install ojet
$ pip3 install --upgrade ojet
$ pip3 uninstall ojetDependenciesNoneDocumentationThe best way to understand the "ojet" philosophy is to see the wrapper in action within jupyter. You will learn very easily how to build sophisticated reports with a few lines of code.The example ishere.Outside jupyter the general usage is::oj = Ojet()
jsparameters = oj.require("knockout")
...
print(oj.render()) # or write the result within an HTML file or generate the page dynamically for any HTTP Python 3 server.Warning"ojet" doesn't include all "HTML" or "Oracle Jet" tags. This first version built over Oracle Jet V11.1.0 is only an example of what can be done with a wrapper. The tool can be easily extended with any tags using examples provided in the package.
Package: ojextends
ojextendsojextendsallows you to extend the object class and convertJSON Documentsto nested object parsing.ojextendsprovides eight key methods to handle transformations.objectToDictobjectToStrobjectsToListobjectsToStrobjectFromDictobjectFromStrobjectsFromStrobjectsFromListGetting StartedTo install using pip, simply runpip install ojextendsDependenciesojextendsonly uses the json library provided by the python system.UsageThe code below defines some simple models, and its natural mapping to json.fromojextendsimportJsonSerializable@JsonSerializableclassStudent(object):name=strage=intbooks=list@JsonSerializableclassTeacher(object):name=strstudents=list([Student])@JsonSerializableclassSchool(object):name=strteachers=list([Teacher])@JsonSerializableclassArea(object):name=strschools=list([School])Example of transformations to parse Area lookup response for item:importjsonimportrequestsfromojextendsimportJsonSerializabledefget_areas(areaid):url='https://127.0.0.1/area/lookup?id={}'returnrequests.get(url.format(area_id)).json()areajson=get_areas(518000)print(areajson)area=Area.objectToDict(areajson)print(area.schools)school=area.schools[0]iflen(area.schools)elseSchool()print(school.name)The code above produces next result:{"name":"shenzhen","student":{"name":"Bob","age":20},"schools":[{"name":"Shenzhen university","teachers":[{"name":"Mike","students":[{"name":"Lily","age":18,"books":["book1","book2"]},{"name":"Stone","age":21}]}]},{"name":"Shenzhen normal university","teachers":[{"name":"Linda1","students":[{"name":"Bob","age":20,"books":[]},{"name":"Tom","age":23}]}]}]}See tests.py for more examples.TestsGetting the tests running looks like:# Install dependencies
$ pip install -r requirements.txt
# Run the test suites
$ python tests.pyLicenseThe MIT License (MIT)Contributed byBob Wu
Package: ojichat-py
𝙤𝙟𝙞𝙘𝙝𝙖𝙩.𝙥𝙮𝑶𝒋𝒊𝒔𝒂𝒏 𝑵𝒂𝒏𝒄𝒉𝒂𝒕𝒕𝒆 (𝒐𝒋𝒊𝒄𝒉𝒂𝒕) 𝑮𝒆𝒏𝒆𝒓𝒂𝒕𝒐𝒓なんだこれはGo製ツールojichatのPython移植版です開発環境Python 3.11*海外の方の利用を1ミリも想定していないため、docstringも含めすべて日本語で整備していますのでご了承ください。インストールpipinstallojichat-pyojichatというパッケージもありますが別のパッケージですのでご注意ください。おじさんで環境が汚れるのが嫌な方は仮想環境でご利用ください。Windowsの方はReleasesに.exeがあります。使い方CLIUsage:
  ojichat [options]
Options:
  -h, --help        ヘルプを表示
  -V, --version     バージョンを表示
  -s, --seed <Any>  シード値を指定する
  -n, --name <Any>  女の子の名前を指定する(-1でランダム)
  -e <number>       絵文字/顔文字の最大連続数 [default: 4]
  -p <level>        句読点挿入頻度レベル [min:0, max:3] [default: 0]
  -q, --quiet       出力を結果のみにします  デバッグモードと併用不可
  -d, --debug       デバッグモード
  --json            結果をJSON形式で返す
std I/O:
  標準入力から入力があった場合、--nameを指定しても標準入力の値に上書きされます
  また、出力は結果のみが標準出力に出力されますexample:基本
$ ojichat

ログを出さない
$ ojichat -q
->ハナチャン、今日もお仕事かな🎵😂出張で愛知に行ってきたよ(^_^)観光でも、行きたいなぁ😂モチロン、ハナチャントネ

JSONで出力する
$ ojichat -q --json
->{"name": "クレハ", "seed": 53304354378, "punc_level": 0, "emoji_num": 4,
   "message": "クレハチャン、お疲れ様〜🎵😋（笑）ちょっと電話できるかな❓（￣ー￣?）🤔❓このホテル🏨、クラブサンドイッチ🥪がオイシイんだって❗💗😊ｵﾚと一緒に行こうよ😘😃なんてね😘😃☀ "}

上の情報を元に名前だけ変更する
$ ojichat -q -n ミコ -s 53304354378 --json
->{"name": "ミコ", "seed": 53304354378, "punc_level": 0, "emoji_num": 4,
  "message": "ミコチャン、お疲れ様〜🎵😋（笑）ちょっと電話できるかな❓（￣ー￣?）🤔❓このホテル🏨、クラブサンドイッチ🥪がオイシイんだって❗💗😊ｵﾚと一緒に行こうよ😘😃なんてね😘😃☀ "}

名前だけをランダムに変更する
$ ojichat -q -n -1 -s 53304354378 --json
->{"name": "萌美", "seed": 53304354378, "punc_level": 0, "emoji_num": 4,
  "message": "萌美チャン、お疲れ様〜🎵😋（笑）ちょっと電話できるかな❓（￣ー￣?）🤔❓このホテル🏨、クラブサンドイッチ🥪がオイシイんだって❗💗😊ｵﾚと一緒に行こうよ😘😃なんてね😘😃☀ "}

標準入力から名前を渡す(ただし、PowerShellで日本語をパイプで渡すと文字化けします)
$ echo リン | ojichat
->リンちゃん、オッハー(^з<)❗お弁当のフレンチトースト🍞が美味しくて、それと一緒にリンちゃんのことも食べちゃいたいナ〜（笑）🎵😃♥なんちゃって💗😃☀

ランダムで出力したいときは空文字を渡します
$ echo "" | ojichat
カズホﾁｬﾝ、こんな遅い時間😤に何をしているのかな🤔⁉今日はもう寝ちゃったのかな(＃￣З￣)🛌（￣▽￣）😪ｵｼﾞｻﾝはプライベートで、カズホﾁｬﾝを癒やして（笑）😚あげたい😋って思ってるヨ😒😎💤(^^;;組み込みfromojichatimportOjichatGeneratorojichat=OjichatGenerator()# 戻り値はOjiMessageクラスresult=ojichat.generator()print(result)# 新たな文章を生成するojichat.reset()result=ojichat.generator()# 引数にTrueを与えると生成後にプロパティを初期値に戻せますforiinrange(10):print(ojichat.generator(True))# 生成した文章の名前だけ変更するresult1=ojichat.generator()ojichat.set_props(name="ひな")result2=ojichat.generator()# シード値で文章を固定しつつ名前をランダムに変更するresult1=ojichat.generator()ojichat.set_props(name=-1)result2=ojichat.generator()# 生成した文章の名前だけ利用して新たな文章を生成するresult1=ojichat.generator()ojichat.set_props(name=result1.name,seed=-1)result2=ojichat.generator()# インスタンス生成時にプロパティを渡すojichat=OjichatGenerator(name="れな")result=ojichat.generator()# 渡せる引数等はdocstringをご覧ください注意事項引数は基本的に本家を参考にしてますので本家の説明も合わせてご覧ください。おじさんは一途なので本家の変更に追随していくつもりですが、おじさんは気まぐれでもあるので違う道を走り始めるかもしれません。問い合わせTwitter
Package: ojo
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: ojpacker
简介一个简单的 python 脚本工具，简化生成数据的过程。a script can packer test data for Olympic informatics Online Judge简单使用指南安装:pip3 install ojpacker更新:pip3 install --upgrade ojpacker运行:直接在终端中输入ojpacker，即可在当前目录运行需要 pip 自动添加的脚本的所在目录在PATH中，若提示ojpacker不存在，请检查PATH运行python3 -m ojpacker演示: 运行ojpacker demo可以生成demo文件夹，内含几个文件，在预配置的编译命令正确的情况下可以直接运行环境要求 (probably)python >= 3.6.9rich>= 4.1文档目录：工作原理命令行参数配置文件及其内容工作原理举个例子，demo里除去配置有三个文件：statemake_inmake_out注意：以上所有的文件名都可在配置中修改典型流程一个典型的题目构造流程，主要分为两部分。分别是构造in文件和out文件构造in文件本程序将会从 state 中逐行读入，再将读入的数据传递给 make_in而 make_in 则依据读入的数据生成一个in文件构造out文件本程序将依照配置中对数据点命名的格式，在文件夹中依次查找in文件当文件存在时，将交由 make_out 文件构造一个同样序号的out文件在这两个流程结束后，将会对生成的数据进行压缩打包，此阶段可以使用命令行参数-unzip跳过特殊流程不是所有的构造都需要同时运行两个流程，所以在命令行参数中使用-input与-output可以跳过相关的流程，详见命令行参数的对应条目文件要求：state:每行依次代表了构造in数据点时的所需参数空行代表没有这个数据点，对应的序号也将跳过make_in 与 make_out:只需准备源文件， 如有需要会自动编译，但需配置编译命令输入输出均使用标准输入输出配置文件缓存目录：运行时需要缓存目录 temp，此目录开始时会自动创建，结束时会自动销毁。若开始运行时目录已存在，将会直接删除！！！命令行参数提示：在参数不会产生歧义的情况下，可以只打第一个或者前几个字母。所有命令主命令configdemo主命令控制运行流程的相关参数-log LEVEL:
此命令将会指定运行时输出日志的等级，默认等级为 info，可选等级有：errorwarninginfodebug-name FILENAME:
指定压缩包、文件夹的名字，不包含后缀名，不指定时使用配置中的默认值defalut_zip_name-show:
生成完成 in/out 文件时，打印文件的第一行选项后可接一个input或output，代表仅打印指定的一种-dir directory:
当你跳过生成 in文件的阶段时，可以指定一个文件夹，使 make_out 从中读取数据。若未指定，则从 temp 目录读取-input NAME:
指定 make_in 文件这里的NAME不是文件名，而是配置中的代号，详见配置文件的input_exec若没有这个参数，将会使用配置中的input_default_exec若 NAME 在配置中不存在，则会跳过此阶段-output NAME:
指定 make_out 文件这里的NAME不是文件名，而是配置中的代号，详见配置文件的output_exec若没有这个参数，将会使用配置中的output_default_exec若 NAME 在配置中不存在，则会跳过此阶段-unzip:
跳过最后压缩文件夹的过程，将数据保存在一个文件夹中-addzip FILE...:
后接参数为文件名，这些文件将会在构造完数据之后一起压缩，或移动至文件夹中-multiprocess [Max]:
使用多进程运行 make_in 与 make_out ，Max 为最大进程数，不指定为无上限config命令config 是配置文件相关的命令，单独运行无效果-create:
在当前目录中，使用 demo 的配置，创建一个配置文件-copyto user/local:
将配置文件从 local 拷贝至 user，或从 user 拷贝至 local 。详见配置文件demo命令直接运行demo，会产生一个文件夹，内含有产生A+B题目的演示-dir [directory]:
指定文件名，若 directory 留空则在当前目录创建配置文件及其内容配置文件名为 ojpacker.json配置文件分为两种，当前目录的称为local，~/.config/下的称为user。当local存在时使用local，否则使用userjson各参数详解json内容为字典，以下是各个键值的意义字符串：defalut_zip_name:
未使用-name参数时，所采用的压缩包名、文件夹名state_name:
state 文件的名字input_data_name&output_data_name:
in/out 数据的文件名。可使用的宏:{num}: 数据点编号，从1开始{name}: 题目名字input_default_exec:
默认使用的 make_in 文件代号output_default_exec:
默认使用的 make_out 文件代号execfile：input_exec:
make_in 文件配置，详见下面的execfileoutput_exec:
make_out 文件配置，详见下面的execfileexecfileexecfile 的格式为 json 的字典，以 demo 中 C++ 的 make_in 配置为例"cpp":{"src":"make_out.cpp","exe":"make_out.out","compile_cmd":"g++ {src} -o {exe}","execute_cmd":"./{exe}"}cpp是其代号，此代号在命令行参数-input和-output以及配置中input_default_exec与output_default_exec中使用src源代码文件名exe可执行文件文件名compile_cmd编译命令execute_cmd执行命令注意：若所使用的语言没有编译阶段，exe与compile_cmd可留空命令中可以使用{src}与{exe}代替相应的文件名
Package: ojtest
OjTest - An auto-copied testcase generator for online judges.Installpip3 install ojtestRequirements :PyperClipIf you find this project helpful, star it!Function1. generate a random list consists of integer values and copy it to the clipboardrand_int_listrand_int_list_sortedrand_int_list_uniquerand_int_list_sorted_unique2. generate a random string and copy it to the clipboardrand_strrand_str_alphabeticsrand_str_alphabetic_lowerrand_str_alphabetic_capitalrand_str_digital3. generate a random tree and copy it to the clipboardrand_treerand_bstUsage1. get a N-ary tree of random integersimportojtestasojimportrandomrandom.seed(42)oj.rand_tree(4)# or oj.rand_tree(max_depth=4, min_val=0, max_val=20)# or oj.rand_tree(max_depth=4, min_val=0, max_val=20, n_ary=2)# [6, 20, 14, 16, null, 19, 3, 20, null, 8, null, 9, 9]"""(6)/  \(20)    (14)/       /  \(16)    (19)  (3)/       /     / \(20)    (8)   (9) (9)"""2. get a string consists of customized char sets(string format)Default char set is alphabetsimportojtestasojimportrandomrandom.seed(42)oj.rand_str(50)# "GiwCkhgoCuKCOySWewyfgUDwPdZHLOQgESkMqVMaLWckpfVcuy"oj.rand_str(length=50,char_set='QWERTYqwerty987654')# "9RyyeW74R9E4ryqEWwrEwR9e7yYyyqeEY4wY79e4wtWwWt9eEq"3. get a string consists of alphabetsimportojtestasojimportrandomrandom.seed(42)oj.rand_str_alphabetic(50)# or oj.rand_str_alphabetic(length=50)# or oj.rand_str(50)# "GiwCkhgoCuKCOySWewyfgUDwPdZHLOQgESkMqVMaLWckpfVcuy"4. get a list consists of random integer valuesBy default, min value is 0, and max value is 100importojtestasojimportrandomrandom.seed(42)oj.rand_int_list(10,0,100)# or oj.rand_int_list(10)  # default min_val = 0, max_val = 100# or oj.rand_int_list(length=10, min_val=0, max_val=100)# [81, 14, 3, 94, 35, 31, 28, 17, 94, 13]5. get a list consists of sorted random integer valuesBy default, min value is 0, and max value is 100importojtestasojimportrandomrandom.seed(42)oj.rand_int_list_sorted(10,0,100)# or oj.rand_int_list_sorted(10)# or oj.rand_int_list_sorted(length=10, min_val=0, max_val=100)# [3, 13, 14, 17, 28, 31, 35, 81, 94, 94]6. get a list consists of customized sorted random integer valuesBy default, min value is 0, and max value is 100importojtestasojfromfunctoolsimportcmp_to_keyimportrandomrandom.seed(42)# decreasing sortkey=cmp_to_key(lambdax,y:y-x)oj.rand_int_list_sorted(10,0,100,key=key)# oj.rand_int_list_sorted(length=10, min_val=0, max_val=100, key = cmp_to_key(lambda x, y: y - x))# [94, 94, 81, 35, 31, 28, 17, 14, 13, 3]