Saravanan666/pypi-org huggingface dataset:
Package: jasmin-mongo-logger
Jasmin Mongo LoggerLogJasmin SMS Gateway's MT/MO to MongoDB Cluster (can be a one-node cluster).Table of ContentsInstallation InstructionsPYPIFrom SourceSetup MongoDB CLusterUsage InstructionsData StructureStart the ServiceInstallation InstructionsPYPIpip3install-Ujasmin-mongo-loggerFrom Sourcegitclonehttps://github.com/BlackOrder/jasmin_mongo_logger.gitcdjasmin_mongo_logger
pip3install.Dockerdockercompose-f./docker/docker-compose.ymlup-dBe sure to change theAMQP_BROKER_HOSTandMONGO_CONNECTION_STRINGin thedocker-compose.ymlfile to your desired values. and also finish thesetup of the MongoDB clusterbefore running the docker-compose file.Setup MongoDB CLusterTo setup a MongoDB cluster with Docker, You can use this open sourceDocker Custom MongoDB ImageUsage InstructionsJasmin Mongo LoggerLogs all MT/MO fromjasminto MongoDB Cluster. All settings are read from OS ENV when run from console. if you want to import it in you code, you can supply the settings on initialization.Data StructureYou have to supply a database and a collection name. The package will dump all data into the collection.Start the serviceThere is multiple ways to setup the package from CLI.By exporting ENV variables
you can export the fallowing variables before executionAMQP_BROKER_HOST                    =              127.0.0.1
AMQP_BROKER_PORT                    =                5672
MONGO_CONNECTION_STRING             =       **REQUIRED:NoDefault**
MONGO_LOGGER_DATABASE               =       **REQUIRED:NoDefault**
MONGO_LOGGER_COLLECTION             =       **REQUIRED:NoDefault**
JASMIN_MONGO_LOGGER_LOG_PATH        =          /var/log/jasmin/
JASMIN_MONGO_LOGGER_LOG_LEVEL       =               INFOThen execute:jasminmongologdYou can pass arguments to the package on execution. executejasminmongologd -hto see all possible arguments. Then execute:jasminmongologd--connection-string$MONGO_CONNECTION_STRING--database$MONGO_LOGGER_DATABASE--collection$MONGO_LOGGER_COLLECTIONMix the previous two methods. you can set the ENV variables and pass some arguments. for example:AMQP_BROKER_HOST=127.0.0.1jasminmongologd--connection-string$MONGO_CONNECTION_STRING--database$MONGO_LOGGER_DATABASE--collection$MONGO_LOGGER_COLLECTION
Package: jasmin-telnet
Jasmin TelnetManageJasmin SMS Gateway's configurations through telnetI wrote some of it and collected most of from:jasmin-apiandjasmin-web-panel.Also some of the logic is ported from this PHP packagejasmin-webbynnikitos95Table of ContentsInstallation InstructionsPYPIFrom SourceUsage InstructionsImportInitialize variablesSyncSingle ModuleSync AllAdd NewEditRemoveInstallation InstructionsPYPIpip3install-Ujasmin-telnetFrom Sourcegitclonehttps://github.com/BlackOrder/jasmin_telnet.gitcdjasmin_telnet
pip3install.Usage InstructionsImportfromjasmin_telnet.proxyimportProxyasJasminTelnetProxyInitialize variablesjasmin_proxy=JasminTelnetProxy(host=**jasmin_cli_host**,# Default: 127.0.0.1port=**jasmin_cli_port**,# Default: 8990timeout=**jasmin_cli_timeout**,# Default: 10auth=**jasmin_cli_auth**,# Default: Trueusername=**jasmin_cli_username**,# Default: "jcliadmin"password=**jasmin_cli_password**,# Default: "jclipwd"standard_prompt=**jasmin_cli_standard_prompt**,# Default: "jcli : "interactive_prompt=**jasmin_cli_interactive_prompt**,# Default: "> "log_status=True,# Default: Falselogger=self.logger_callback# Default: None)SyncSingle ModuleTo sync, remove any sub-module not sent and add not existing and update existing.jasmin_proxy.sync(module="smppccm",sub_modules_data={"cid1":{"cid":"cid1","username":"someUsername1","host":"127.0.0.1"},"cid2":{"cid":"cid2","username":"someUsername2","host":"127.0.0.2"},"cid3":{"cid":"cid3","username":"someUsername3","host":"127.0.0.3"}})Sync Alljasmin_proxy.syncAll(collection_data={"smppccm":{"cid1":{"cid":"cid1","username":"USERNAME","host":"127.0.0.1"},"cid2":{"cid":"cid2","username":"USERNAME","host":"127.0.0.2"},"cid3":{"cid":"cid3","username":"USERNAME","host":"127.0.0.3"}},"group":{"gid1":{"gid":"gid1"}},"user":{"uid1":{"uid":"uid1","gid":"gid1","username":"USERNAME","password":"PASS"}}})Beware, any module not included will be flushed.
if you send this:jasmin_proxy.syncAll()orjasmin_proxy.syncAll(collection_data={})orjasmin_proxy.syncAll(collection_data=None)This will flush all of Jasmin configurations.Add Newjasmin_proxy.add(module="user",sub_id="uid3",options={"uid":"uid3","gid":"gid1","username":"USERNAME","password":"PASS"})Editjasmin_proxy.edit(module="user",sub_id="uid3",options={"password":"NEW_PASS"})Removejasmin_proxy.remove(module="user",sub_id="uid3")
Package: jason-json
jason-jsonJasonJSON BuilderInstallpipinstallgit+https://github.com/eggplants/jason-json# or...pipinstalljason-jsonCLI UsageYou can run this program asjason-jsonorjason.jsonon CLI.$ jason.json -i 2
{
  "東京都": [
    {
      "name": "足立鹿浜店",
      "address": "東京都足立区鹿浜6-34-19",
      "link": "http://jason.co.jp/wptest/?p=5079",
      "business_time": {
        "begin_sec": 36000,
        "end_sec": 79200,
        "duration_sec": 43200,
        "duration_str": "10:00～22:00"
      }
    },
    ...
  ],
  "群馬県": [
    ...
  ]
}Help$ jason.json -h
usage: jason.json [-h] [-O] [-i NAT] [-s PATH] [-u URL] [-V]

Jason (jason.co.jp) JSON Builder

options:
  -h, --help            show this help message and exit
  -O, --overwrite       overwrite if save path already exists (default: False)
  -i NAT, --indent NAT  indent json (default: None)
  -s PATH, --save PATH  save json to given path (default: None)
  -u URL, --url URL     target url (default: https://jason.co.jp/network)
  -V, --version         show program's version number and exitfrom DockerTry:dockerrun-itghcr.io/eggplants/jason-json-hLicenseMIT
Package: jason-server
Jason ServerGet a full fake REST APITable of contentsJason ServerGetting startedRoutesSingular RoutesPlural RoutesFilterPaginationSortingDatabaseExtrasAlternative HostAlternative PortCLI UsageGetting startedInstall Jason Serverpip3installjason-serverCreate adb.jsonfile with some data{"articles":[{"id":1,"title":"jason-server","author":"1"},{"id":2,"title":"jason-routes","author":"1"}],"authors":[{"id":1,"name":"bob"}]}Start JSON Serverjason-serverwatchdb.jsonNow if you go tohttp://localhost:8080/articles, you'll get{"id":1,"title":"jason-server","author":"1"},{"id":2,"title":"jason-routes","author":"1"}RoutesSingular RoutesGET /authorsPlural RoutesGET /authors
GET /authors/1FilterGET /articles?title=title&author=eminemPaginationUse_pageand_limitto paginate data.In theLinkheader you'll getfirst,prev,nextandlastlinks.GET /articles?_page=2
GET /articles?_page=3&_limit=15SortingUse_sortand_order(defaults order: asccendant)GET /persons?_sort=age
GET /persons?_sort=name&_order=descDatabaseGET /dbExtrasAlternative HostYou can start JSON Server on other host with the--hostflag:$json-server--host"0.0.0.0"watchdb.jsonDefault:localhostAlternative PortYou can start JSON Server on other ports with the--portflag:$json-server--port8100watchdb.jsonDefault:8080CLI UsageUsage:jason-server[OPTIONS]COMMAND[ARGS]...

Options:-h,--hostTEXTHostadress-p,--portINTEGERPort-q,--quiet--versionShowtheversionandexit.--helpShowthismessageandexit.

Commands:watchRunyourdatabaseasRESTApiCreditsjson-serversandmanLicenseThe code is available under theMITlicense.
Package: jaspice
JaSPICE - Japanese SPICEEvaluation code for machine-generated image captions in Japanese.This code also implemented a scene-graph parser for Japanese.Instructions (using Docker)Clone & Installgit clone git@github.com:keio-smilab23/JaSPICE.git
cd JaSPICE
pip install -e .Builddocker build -t jaspice .Run the docker container.docker run -d -p 2115:2115 jaspiceUsagefromjaspice.apiimportJaSPICEbatch_size=16jaspice=JaSPICE(batch_size,server_mode=True)_,score=jaspice.compute_score(references,candidates)Instructions (without Docker)Clone & Installgit clone git@github.com:keio-smilab23/JaSPICE.git
cd JaSPICE
pip install -e .Install JUMAN, JUMAN++, KNPjuman : v7.01juman++ : v1.02knp : v4.20# JUMAN++
wget 'http://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=http://lotus.kuee.kyoto-u.ac.jp/nl-resource/jumanpp/jumanpp-1.02.tar.xz&name=jumanpp-1.02.tar.xz' 

# JUMAN
wget 'http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/juman/juman-7.01.tar.bz2' -O /tmp/juman.tar.bz2 

# KNP
wget 'https://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=https://nlp.ist.i.kyoto-u.ac.jp/nl-resource/knp/knp-4.20.tar.bz2&name=knp-4.20.tar.bz2'Usagefromjaspice.apiimportJaSPICEbatch_size=16jaspice=JaSPICE(batch_size,server_mode=False)_,score=jaspice.compute_score(references,candidates)Scene Graph Example「人通りの少なくなった道路で青いズボンを着た男の子がオレンジ色のヘルメットを被りスケートボードに乗っている．」BibTex@InProceedings{jaspice,
    title     = {JaSPICE: 日本語における述語項構造に基づく画像キャプション生成モデルの自動評価尺度},
    author = {和田唯我 and 兼田寛大 and 杉浦孔明},
    year      = {2023},
    booktitle = {言語処理学会第29回年次大会}
}
Package: jaspy
Jaspy is a Python VM written entirely from scratch in JavaScript with interpreter size
and coroutine support in mind. It interprets CPython 3.5 bytecode within the browser and
aims to replace JavaScript as main web scripting language.Featureseasilyextensiblewith native JavaScript modules (time,dom, …)pluggable integer implementations (JS integers,BigInteger.js, …)suspendableinterpreter (coroutine and greenlet support)full support for meta-classes and builtin subclassingStateThis project is still in an pre-alpha planning state. The APIs are unstable, it is
untested and not ready for productive use.
Package: jass-bot
Copyright (c) 2018 Joel NiklausPermission 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.Description: # JassBot## Useful commands
##### Start tensorboard:tensorboard –logdir log#### SSH to remote machine with port forwarding for viewing the tensorboardssh -L 6006:127.0.0.1:6006 -i ~/.ssh/diufpc29joel@diufpc29#### Setup environment
- install conda
- create environment with python 3.7.3conda create –name project python=3.7.3- activate environmentconda activate project- install requirementspip install -r requirements.txt- (export environmentconda env export > environment.yml)orinstall from environment.ymlconda env create -f environment.yml## Run experimentpython experiment.pyPlatform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Package: jassign
jassign: Jupyter Notebook AssignmentsFormat and tools for authoring and distributing Jupyter notebook assignmentsGetting startedCourse instructors author assignments as Jupyter notebooks by creating a
notebook that contains setup code, questions, solutions, and tests to validate
those solutions. This project prepares an assignment to be distributed to
students and later scored automatically.Thenotebook formatis not specific to a programming
language or autograding framework, but was designed to be used withokpy, which is Python based. Contributions to
support other testing frameworks, such as [nbgrader, and other programming
languages are welcome.An example notebook appears intests/example.ipynb, which uses thenotebook
format. To convert it, run:jassigntests/example.ipynbtests/outputsome/courseThis command will createtests/outputwith a student version and an autograder
version as subdirectories.You can then generate a PDF from the result:jassign-pdftests/output/autograder/example.ipynbtests/output/autograder/example.pdf
Package: jast
Construct javascript AST structures using python objects.RequirementsPython 2.7Setup$ python -m pip install --user jast
or
(venv)$ python -m pip install jastUsage$ python
>>> import jast
>>> jast.Object({"a": 1, "b": 2}).ast()
'{
  "type": "ObjectExpression",
  "properties": [
      {
          "type": "ObjectProperty",
          "method": false,
          "key": {
              "type": "Identifier",
              "name": "a",
              "definition": null
          },
          "computed": false,
          "shorthand": false,
          "value": {
              "type": "NumericLiteral",
              "value": 1,
              "extra": {
                  "rawValue": 1,
                  "raw": "1"
              }
          }
      },
      {
          "type": "ObjectProperty",
          "method": false,
          "key": {
              "type": "Identifier",
              "name": "b",
              "definition": null
          },
          "computed": false,
          "shorthand": false,
          "value": {
              "type": "StringLiteral",
              "value": "2",
              "extra": {
                  "rawValue": "2",
                  "raw": "\"2\""
              }
          }
      }
  ]
 }'ChangeLog1.0.0-beta (2019-02-07)Initial release.
Package: ja-stopword-remover
形態素解析後の日本語の文のリストからストップワードを除去するためのモジュールです。
作者が使っていたプログラムをなんとなくpipに登録しただけですので、適当に使ってください。
ご意見はご要望はこのパッケージのgithubかhttps://pickerlab.net/2020/12/26/ja_stopword_remover/のコメント欄までお願いします。
Package: ja-text-cleaner
ja_text_cleanerja_text_cleanerは、日本語のための日本語変換ライブラリです。パイプライン内部処理で使われているライブラリと、主な処理過程の概要を次に示します。
現在は名前の処理にマッチするように設計されています。わかち書き制御文字・記号等のノイズを除去形態素解析でわかち書き（sudachi）読みがな取得わかち書きされたトークンの読み（全角カタカナ）を取得（sudachi）辞書にヒットしない英字の読み（全角カタカナ）を取得（romkan）辞書にヒットしない半角カタカナを全角カタカナに変換（jaconv）その他必要に応じて半角を全角に変換（mojimoji）必要に応じてカタカナからひらがな・ヘボン式に変換（romkan）システム要件Python 3.8+インストールja_text_cleanerのほかに、形態素解析（sudachi）で使用する辞書（sudachidict_core）が必要です。pipinstallja_text_cleanersudachidict_core始めるfromja_text_cleanerimportname# 制御文字・記号はノイズとして除去されますname.Wakachi("\t\n\xa0a\u3000-!_")# "a"# 形態素解析結果はsudachiの処理結果に依存しますname.Wakachi("abc123あいうアイウｱｲｳ日本!")# "abc　123　あ　いう　アイウｱｲｳ　日本"# CJK互換漢字はCJK統合漢字へ正規化（NFC・NFKC）されませんname.Wakachi("神")# "神"name.Wakachi("日本太郎")# "日本　太郎"name.Zenkaku("日本太郎")# "日本　太郎"name.Katakana("日本太郎")# "ニッポン　タロウ"name.Hiragana("日本太郎")# "にっぽん　たろう"name.Romaji("日本太郎")# "nippon tarou"name.Wakachi("nippon tarou")# "nippon　tarou"name.Zenkaku("nippon tarou")# "ｎｉｐｐｏｎ　ｔａｒｏｕ"name.Katakana("nippon tarou")# "ニッポン　タロウ"name.Hiragana("nippon tarou")# "にっぽん　たろう"name.Romaji("nippon tarou")# "nippon tarou"name.Wakachi("abc")# "abc"name.Zenkaku("abc")# "ａｂｃ"name.Katakana("abc")# "エービーシー"name.Hiragana("abc")# "えーびーしー"name.Romaji("abc")# "e-bi-shi-"name.Wakachi("伊藤")# "伊藤"name.Zenkaku("伊藤")# "伊藤"name.Katakana("伊藤")# "イトウ"name.Hiragana("伊藤")# "いとう"name.Romaji("伊藤")# "itou"注意本ライブラリは実験段階です。
Package: jatime
Jatime: Time Expression Analyzer for JapaneseJatime is a Python library to extract Japanese time expressions from a given text and turning them into objects.Try Jatime now from your browser!Installing jatimeInstall withpipor your favorite PyPI package manager.$ pip install jatimeUsing jatimeHere's how to analyze Japanese text using jatime.
Note that "dow" means the day of the week.From within Pythonfromjatime.analyzerimportanalyzeresult=analyze("それは令和２年十月十七日の出来事でした。")print(result)['それは', {'string': '令和２年十月十七日', 'year': 2020, 'month': 10, 'day': 17, 'dow': 5, 'hour': None, 'minute': None}, 'の出来事でした。']From the command line$jatimeanalyze--format-jsonそれは令和２年十月十七日の出来事でした。["それは",{"string": "令和２年十月十七日","year": 2020,"month": 10,"day": 17,"dow": 5,"hour": null,"minute": null},"の出来事でした。"]Over HTTP communication$jatimeserve$ curl --get "http://localhost:1729/analysis" --data-urlencode "string=それは令和２年十月十七日の出来事でした。"
["それは",{"day":17,"dow":5,"hour":null,"minute":null,"month":10,"string":"令和２年十月十七日","year":2020},"の出来事でした。"]FeaturesJatime does not change the given string at all. It just objectifies the extracted time expressions.Jatime supports a variety of time expressions.22:30,午後十時半andP.M.10:30are all interpreted as the same time as we want.Jatime tries to make up for the missing time information whenever possible. That is, jatime calculates the year given the month, day and day of the week.Jatime will tell us why the time information is inconsistent if it is inconsistent.
Package: ja-timex
ja-timex自然言語で書かれた時間情報表現を抽出/規格化するルールベースの解析器概要ja-timexは、現代日本語で書かれた自然文に含まれる時間情報表現を抽出しTIMEX3と呼ばれるアノテーション仕様に変換することで、プログラムが利用できるような形に規格化するルールベースの解析器です。以下の機能を持っています。ルールベースによる日本語テキストからの日付や時刻、期間や頻度といった時間情報表現を抽出アラビア数字/漢数字、西暦/和暦などの多彩なフォーマットに対応時間表現のdatetime/timedeltaオブジェクトへの変換サポート入力fromja_timeximportTimexParsertimexes=TimexParser().parse("彼は2008年4月から週に3回のジョギングを、朝8時から1時間行ってきた")出力[<TIMEX3tid="t0"type="DATE"value="2008-04-XX"text="2008年4月">,<TIMEX3tid="t1"type="SET"value="P1W"freq="3X"text="週に3回">,<TIMEX3tid="t2"type="TIME"value="T08-XX-XX"text="朝8時">,<TIMEX3tid="t3"type="DURATION"value="PT1H"text="1時間">]datetime/timedeltaへの変換# <TIMEX3 tid="t0" type="DATE" value="2008-04-XX" text="2008年4月">In[]:timexes[0].to_datetime()Out[]:DateTime(2008,4,1,0,0,0,tzinfo=Timezone('Asia/Tokyo'))# <TIMEX3 tid="t3" type="DURATION" value="PT1H" text="1時間">In[]:timexes[3].to_duration()Out[]:Duration(hours=1)インストールpip install ja-timexドキュメントja-timex documentation参考仕様本パッケージは、以下の論文で提案されている時間情報アノテーションの枠組みを元に作成しています。[1]小西光, 浅原正幸, & 前川喜久雄. (2013). 『現代日本語書き言葉均衡コーパス』 に対する時間情報アノテーション. 自然言語処理, 20(2), 201-221.[2]成澤克麻 (2014)「自然言語処理における数量表現の取り扱い」東北大学大学院 修士論文
Package: jatool
jatoolA Python package to download and downstream-analysis the Japanese literatures.Installpipinstalljatool#You need to install Rust to install depandency 'SudachiPy'##Linux##curl--proto'=https'--tlsv1.2-sSfhttps://sh.rustup.rs|sh##MacOS##brewinstallrustuprustup-initload jatool packagefromjatool.functionimport*Download literaturesYou need to input the author and output path. Using ja_download_fiction_author() function.
Example:ja_download_fiction_author(author='島崎藤村',output_path='fiction_download')Topic model (LDA)You need to input the path which contains the txt files. Using topic_model_fition_corpus() and topic_model_fition_text().
Example:excleded_words=[]#You can choose excleded_words to adjust the Topic model results.i.e. excleded_words = ['人','事','ぬ','やう']topic_result=topic_model_fition_corpus(folder_path='fiction2',topics_num=2,added_stopwords=excleded_words)#You can adjust the Topic model results using different 'topics_num' parameter.topic_model_fition_text(input_corpus=topic_result,topics_num=3)Clustering analysisYou need to input the path which contains the txt files. Using get_features_path() and feature_clustering().
Example:features=get_features_path(folder_path='fiction_download')df=feature_clustering(feature_list_result=features,clusters_n=3)#if plot can't show correctly the japanese words, please install the japanese font, for example 'Yu Gothic'#Here is the code for font changing# fpath = '/Your/Fonts/directory/YuGothic.ttf'# prop = fm.FontProperties(fname=fpath)# font_dir = ['/Your/Fonts/directory/']# for font in fm.findSystemFonts(font_dir):#     fm.fontManager.addfont(font)# plt.rcParams['font.family'] = 'Yu Gothic'Emotion analysisYou need to input the specific text. Using get_sentiment_analyzer().
Example:sentiment_analyzer=get_sentiment_analyzer()sentiment_analyzer("私は幸福である。")TranslationYou need to input the specific text. Using translation_from_jp_to_en(), translation_from_jp_to_cn(), translation_from_lan_to_jp.
Example:translation_from_jp_to_en("私は幸福である。")translation_from_jp_to_cn("私は幸福である。")translation_from_lan_to_jp('I am happy.')
Package: jatto-compare-version-strings
Ormuco and VanHack Code ChallengeThe Question
The goal of this question is to write a software library that accepts 2 version string as input and returns whether one is greater than, equal, or less than the other. As an example: “1.2” is greater than “1.1”. Please provide all test cases you could think of.My SolutionGet Started:Clone this repository:$git@github.com:jattoabdul/compare_version_strings.gitChange into thecompare_version_stringsdirectory:$cdcompare_version_stringsInstall all dependencies:$pipinstall-rrequirements.txtRun Test:$pytestRun as Packaged Library:Install:$pipinstalljatto_compare_version_stringsUsage:from compare_version_strings.compare_version_strings import compare_versions, prepare_comparison_result

comparison_result = compare_versions('1.0.0.2.9', '1.0.0.3.4')

# It will return:
#     A positive number: If the first version is greater than the second  
#     A negative number: If the first version is smaller than the second
#     Zero: If the versions are equals

formated_result = prepare_comparison_result('1.0.0.2.9', '1.0.0.3.4')

# It will return:
#     '{version1}' is equal to '{version2}': If the comparison returns 0
#     '{version1}' is smaller than '{version2}': If the comparison returns -1
#     '{version1}' is greater than '{version2}': If the comparison returns 1
Package: jautomate
JautomateThis tool automates MDM tasks on Jamf using the Jamf Pro and Jamf Classic API. For now there are only tasks focused on mobile devices. Computer versions of those tasks are in the works.InstallationA pip installation will be set up once the build has been tested. For now you can install it from the testing PyPi server with this command:python3-mpipinstall--index-urlhttps://test.pypi.org/simple--extra-index-urlhttps://pypi.org/simple/jautomateSetupEnv VariablesYou have to define the following environment variables in a.envfile to connect to your Jamf Pro server.JPS_USERNAME=[Username]
JPS_PASSWORD=[Password]
JPS_URL=[Url]Basic UsageThis tool runs from the command line and has basic help information built into it. To access the help functions use the command:jautomate--helpAvailable CommandsAssign a deviceAdd student information to a device record in Jamf Projautomateassign[DEVICE_TYPE][ASSET_TAG][SERIAL_NUMBER][STUDENT_NAME][HOMEROOM][STUDENT_GRADE][BUILDING]Required argumentsDEVICE_TYPEType of device being updated. {mobile / computer}ASSET_TAGAsset tag should be a 6 digit numberSERIAL_NUMBERSerial Number of deviceSTUDENT_NAMEStudent full nameHOMEROOMHomeroom teachers last nameSTUDENT_GRADEStudent grade as a numberBUILDINGBuilding names as used in Jamf ProUnassign a deviceRemove student information from device record in Jamf Pro.jautomateunassign[DEVICE_TYPE][ASSET_TAG]Required argumentsDEVICE_TYPEType of device being updated. {mobile / computer}ASSET_TAGAsset tag should be a 6 digit numberSync multiple device recordsSyncs data from a csv file of device records to Jamf Pro. Devices must all be of same type (mobile/computer.)jautomatesync[DEVICE_TYPE][FILE_PATH]Required argumentsDEVICE_TYPEType of devices being updated. {mobile / computer}FILE_PATHThe path to the csv file to be importedDevelopmentReferences for dev/testing# Run this line from the same directory as setup.pypython-mbuild# To test the build you can install/re-install with this line.pipinstalldist/jautomate-0.0.7-py3-none-any.whl--force-reinstall
Package: javaccflab
Metaprogramming. Java style and documentation fixerRequirementsPython: 3.4Install PyPI packagepip install javaccflabHelpusage: javaccflab [-h] [-p P] [-d D] [-f F] [-v] [-c]JavaCCF is utility to fix style and documentation comments in Java filesoptional arguments:
-h, --help     show this help message and exit
-p P           Path to Java project directory to verify or correct mistakes.
-d D           Path to directory with Java files to verify or correct
mistakes.
-f F           Path to Java file to verify or correct mistakes.
-v, --verify   Verify code style and documentation comments
-c, --correct  Correct styling mistakes in code and documentation commentsExamplespython java_ccf.py -f 'C:\Users\Vlad\Java\MyClass.java' --verifypython java_ccf.py -p 'C:\Users\Vlad\Projects\MyProject' --correctUsing installed PyPI package:javaccflab -f 'C:\Users\Vlad\Java\MyClass.java' --correct