Saravanan666/pypi-org huggingface dataset:
Package: gozer-engine
Gozer: A Browser Engine for the Gopher ProtocolAbout Gozergozer-engine started a project I gave myself to explore the process of building something straight from an RFC spec. It adheres to the syntax specified in RFC1436and RFC4266. It utilizes the Lark package for parsing the Gopher source code.The goal of this project is to serve as an extensible framework that will allow users to select and/or create their own frontends (e.g. picotui, blessed, PyQt, etc).Bugs and feature requests are tracked in theIssuessection this GitLab project.InstallationFrom PyPI:pip install gozer_engineFrom source. Either:Clone this repo locally orDownload an artifact fromReleasesIf you want to install Gozer to a specific Python virtaul environment, activate that environmentFrom the project root runpip install .UsageThe following is a simple script that uses the Gozer API methods to load two pages then go back one page in the history. For an example of a terminal-based browser that utilizes the Gozer engine, see the schism15/gozer-curses> project.frompprintimportpprintasppfromgozer_engine.gozerimportGozerdefgozer_test():first_uri='sdf.org'second_uri='gopherpedia.com'gozer=Gozer()input('Press Enter to load sdf.org: ')gozer.send_request(first_uri)pp(gozer.get_page_contents())input('Press Enter to load gopherpedia.com: ')gozer.send_request(second_uri)pp(gozer.get_page_contents())input('Press Enter to go back one page in the history: ')gozer.back_one_page()pp(gozer.get_page_contents())if__name__=='__main__':gozer_test()TODO (As of 2021-02-14)Add concept documentation (#38)Add support for a config file (#30)Add more test cases (#23)Fix mock Gopher Server (#35)Investigate Gemini Support (#36)Search support (#16)Add Sphinx Docs (#32)Fix History Bug (#28)Add reload (#27)Publish Package to PyPI (#33)About GopherThe Gopher protocol was an Internet protocol that was popular in the early 1990s. Created in 1991 (the same year as HTTP), it was one of the dominant competitors in the World Wide Web space in the early 1990s. Gopher's emphasis was on modeling a hierarchical file-like structure of content on the web and simplicity in implementing server and client software.With an interface utilized menu-like functionality for navigating through web content, Gopher was suited for text based browsers. Lynx still currently maintains native Gopher support. Though Gopher was eventually overtaken in adoption by HTTP, a community of active Gopherholes continues to this day.If you are unfamiliar with Gopher, these links will provide some context:Wikipedia entry on GopherFloodgap Public Gopher ProxyDistroTube's video on GopherThe Rise and Fall of the Gopher ProtocolInterview with the Developers of GopherRFC 1436 - The Internet Gopher Protocol (a distributed document search and retrieval protocol)RFC 4266 - The Gopher URI Scheme)
Package: gozle-disk-api
Gozle disk apiGozle disk api is an unofficial api for the gozle disk service which provides the ability to log into your account, see the amount of space on your account and get account data. There is a function to update outdated cookies.For referenceThe fact is that cookies last about 1-2 hours. Therefore, a function was written to detect invalid cookies and update them. To implement re-authorization, a code was written that saves your login and password. It is not transferred to third parties.
I don't understand OOP well, so there is a lot of hard code in the library, if you want, you can correct my hard code. In the future I will do this myself as I learn OOP.Implemented functions: authorization, viewing profile information, viewing the amount of disk space.Soon:
Uploading files.To use the get_info_profile function you must pass the required user_api argument. This is your personal api for your account of this type:https://disk.gozle.com.tm/api/v1/users/1234/. You must find out this address yourself in the developer console by analyzing all network requests.Log in to your account, press f12, go to the Network tab and reload the page. Find the API shown in the screenshot (4 digits at the end will be different)InstallationImport:from gozle_disk_api import gozle_diskTo authorize, you must activate this code. It is executed once, after which you will have 2 files created, these are cookies.txt and data.txt. You don't need to touch these files.gozle_disk.auth('email','password')
Package: gp32-transfer
GP32 GPS Communication 3000Getting StartedThis is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.InstallationUsageRoadmapSave waypointsRead from GP32Save to GPX file compatible with OpenCPN[] Upload WaypointsConvert GPX to NMEAUpload NMEA to GP32Make a nice appCLI[] Web-based ?[] Click-n-go ?See theopen issuesfor a full list of proposed features (and known issues).(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)LicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.(back to top)ContactYour Name -@juju_on_mini-muller.julien.02@gmail.com.comProject Link:https://github.com/pepin_nucleaire/furuno-gpx-transfer(back to top)Acknowledgmentsrusskiy78 and it furunotogpx projectthat I used as a really big inspirationMy dog(back to top)
Package: gpalib
GPAA library used to calculate your GPA. Now the GPA algorithm varies slightly from school to school, and calculating your GPA score one by one when applying to schools is a complicated and time-consuming process. This library is used to implement some common GPA calculation methods, which is convenient for you to calculate your GPA.一个用来计算你GPA的库。现在各个学校的GPA算法略有不同，在申请学校时逐个计算你的GPA分数是很复杂且耗费时间的过程。这个库用来实现一些常见的GPA计算方法，方便你计算你的GPA。How to installpipinstallgpalibHow to useimportgpaliba=['A','B','A','A']r=gpalib.convert_to_4(a,'rank')print(r)[4, 3, 4, 4]importgpaliba=[99,87,89,83,96]r=gpalib.convert_to_4(a,'hundred','Beida_4')print(r)[4, 3.7, 3.7, 3.3, 4]
Package: gpam_training
Module to facilitate the integration of a sklearn training pipeline into a deploy and retraining systemInstallpip install gpam_trainingUsageMultilabel trainingFirst of all, it is needed to have in memory a dataframe from pandas.
The csv must be in the following format:process_id,page_text_extract,tema
1,Lorem ipsum dolor sit amet,1
2,Lorem ipsum dolor sit amet,2
2,Lorem ipsum dolor sit amet,3
42,Lorem ipsum dolor sit amet,2To train the model, do as shown bellow:from gpam_training import MultilabelTraining
import pandas as pd

df = pd.read_csv('example.csv')
model = MultilabelTraining(df)
model.train()To dump a pickle file with the trained model, do the following:model_pickle = model.get_pickle()
Package: gpapi2
This project contains an unofficial API for google play interactions. The code mainly comes fromGooglePlayAPI projectwhich is not
maintained anymore. An authentication error was fixed.BuildThis is the recommended way to build the package, since setuptools will take care of
generating thegoogleplay_pb2.pyfile needed by the library (check thesetup.py)$ python setup.py buildUsageCheck scripts intestdirectory for more examples on how to use this API.from gpapi.googleplay import GooglePlayAPI

mail = "mymail@google.com"
passwd = "mypasswd"

api = GooglePlayAPI(locale="en_US", timezone="UTC", device_codename="hero2lte")
api.login(email=mail, password=passwd)

result = api.search("firefox")

for doc in result:
    if 'docid' in doc:
        print("doc: {}".format(doc["docid"]))
    for cluster in doc["child"]:
        print("\tcluster: {}".format(cluster["docid"]))
        for app in cluster["child"]:
            print("\t\tapp: {}".format(app["docid"]))For first time logins, you should only provide email and password.
The module will take care of initializing the api, upload device information
to the google account you supplied, and retrieving
a Google Service Framework ID (which, from now on, will be the android ID of your fake device).For the next logins youshouldsave the gsfId and the authSubToken, and provide them as parameters
to the login function. If you login again with email and password, this is the equivalent of
re-initializing your android device with a google account, invalidating previous gsfId and authSubToken.
Package: gparams
模板文件说明使用ini配置文件维护yml中各个位置的变量值有以下优点：将嵌套的结构转换为扁平的结构，降低管理和维护的难度将无序的结构转为有序的结构，版本变更时更容易检查不同之处空的参数模板文件（yml）中许多默认值无需指定，使用ini配置只需关注需要改变的值解耦工作流版本、工作流模板版本、参数渲染模块配合jinja模板 + gdmetro指定的ini配置模板规则，可以动态生成不同的值，使参数文件渲染与工作流版本更新解耦参数声明在ini文件中，使用[DECLARE]section 声明变量，以BGI_WGS的参数为例：[DECLARE]project_id={{project_id}}subproject_id={{subproject_id}}sample_id={{sample_id}}cloud_out_dir={{cloud_out_dir}}lane_id_list={{lane_id_list}}reference_buildversion={{reference_buildversion}}date={{date}}task_name={{task_name}}按照jinja模板的规则，以{{}}两对花括号包裹的为变量，gdmetro会去出花括号中的变量名，并在渲染时传入声明的参数。（注意，等号左边是用于渲染ini文件时检查参渲染结果的，不会参与参数值的替换操作）在DECLARE组中，只能出现变量的声明和以;开头的注释，不能出现其他的键值定义宏所有的宏定义应该在[MACROS]中，宏定义用于动态生成一些值，比如生成loadbam的参数列表、
根据reference_buildversion生成chrN、生成参考基因组名称等。以下是用于动态生成loadbam<?>的实例，``：（声明）通过lane_id生成item实体{%macro _loadbamData(lane_id, prefix, pos) -%}
{"enid": null, "name": "{{cloud_out_dir}}/tmp/fq_bam/{{sample_id}}/{{lane_id}}/{{lane_id}}.{{prefix}}{{pos}}.bam", "property": {"block_file": {"block_name": null, "is_block": false, "split_format": "default"}} }
{%- endmacro %}（声明）根据坐标生成loadnode_bam的值，比如loadnode_bamY{% macro loadbamList(prefix, pos) -%}
[{%for lane_id in lane_id_list -%}
{{_loadbamData(lane_id, prefix, pos)}} {%-if not loop.last%}, {%endif-%}
{%-endfor%}]
{%- endmacro%}（应用）动态生成 loaddata_node_bam1 到 loaddata_node_bam22{%-for index in range(1, 23) -%}
loaddata_node_bam{{index}}.data = {{ loadbamList('bam', index)}}
{%endfor-%}更多jinja模板的语法请参考文档参数映射为了将json/yml的多维结构转为二维结构，我使用.作为分割符号，将每一级别的名称连接起来，用于唯一标识一个子属性（类似MongoDB），
对于数组，同样模仿MongoDB，使用$指定第几个元素，程序解析时碰到了$符，则认为用户指定了一个数组中第n个元素的值：例如配置中的一条项目：loaddata_cnv_head.data.$0.name = 1，在解析时转回多维结构如下：loaddata_cnv_head:data:[{"name":1}]为了便于管理，我根据参数文件的结构Inputs,Outputs,Parameters以及顶级属性做了分组处理，yml的结构如下：name:Inputs:xxx:Outputs:xxx:Parameters:xxx:对应到ini配置文件中的四个分组如下：[!DIRECT]name=???[Inputs][Outputs][Parameters]程序会严格按照分组来读取不同的值填充到空的yml文件中，所以指定变量时需要按照分组填入。
为了方便处理，gdmetro中添加了一个命令行工具，可以提取yml文件中Inputs,Outputs,Parameters的主要变量，其中
包含以下格式：Inputs/Outputs:...data.$0.nameParameters:...value命令行使用：gvariablesload-y<yml文件，支持旧版的占位符参数导出>[-i<忽略的参数（后缀）列表，以空格隔开，比如loadbam等通过宏生成的就不需导出>]gvariables同时也支持对ini配置的检查：gvariablesdetection-f<ini文件路径>-v'{"参数名": 参数值}'
Package: gpass
GPassGPass is a flexible and easy to use, terminal based password input utilityIt is a variation of thestdiomaskutility which allows users to securely input passwords onto the terminal.However, many a times, piping, storing and redirection of the output often leads to the program not allowing the developer to safely input the password. This program was created to avert the same, along with create more types of possible masks for the passwords.InstallationAPyPIinstallation can be achieved bypython3 -m pip install gpassA build from source can be done bygit clone https://gitlab.com/loggerheads-with-binary/gpass
cd gpass
python3 -m pip install -r requirements.txt 
python3 setup.py installUsing in your scripts>>>importgpass#Check below for meanings of colored and mask>>>var=gpass.getpass("Enter your password: ",colored=True,mask=gpass.SPECIAL_MASKS.MIMI_REVERSE)Enteryourpassword:************>>>var'password1234'MasksThe following different masks can be usedstr: Any python string can be used as a maskgpass.SPECIAL_MASKS.NO_MASK: Equivalent of having no mask, all characters are displayed directly. Can also be used withmask=Falsegpass.SPECIAL_MASKS.BLIND_MASK: Does not echo any character. Equivalent of read -n on unix. Can also be used withmask=Noneormask=''gpass.SPECIAL_MASKS.DEFAULT_MASK: Uses the'*'character to mask every single input character. Can also be achieved by using'*'as the mask. Can also be used withmask=Truegpass.SPECIAL_MASKS.ONE_REVERSE: Displays the last character of the input password in plaintext, and the rest of them in'*'characters, similar to some website password inputs.gpass.SPECIAL_MASKS.MIMI_REVERSE: Similar toONE_REVERSEbut also works backwards, i.e when characters are removed from the terminal.Colored InputYou can receive color input by usingcolored=Truein the gpass.getpass function.
Colors for prompt and input are also customizable with thecolorsetparameter, which can be a two-member list/tuple consisting of (prompt, input) colors.By default, thecolorset =  ('yellow' , 'green')However, note that the colors must be defined. For example,magenta+cyancolor does not exist and will raise a KeyError. The colors are asper those defined in termcolorAs a rule of thumb, only the following colors are allowed:greyredgreenyellowbluemagentacyanwhiteOne could also usedefault, that being the default color of the terminal.Use of stderrThe program uses the stderr stream to print the mask while uses theGetchfunction to take input characters. This allows the program to easily surpass any pipes or redirections in the terminal as long as the redirections/pipes involve stdout and not stderr.If you wish to instead use the stdout, or output the password to a filestream, change thestreamparameter of the getpass function tosys.stdoutor a filehandle.LicenseThe program uses theMIT License.BugsBugs can be raised in issues. For any improvements, please fork the project. If you feel your fork is better than this project and should be used as a substitute instead, mail me atdev@aniruddh.mland I will set a pointer over at this project to yours.
Package: gpassw
gpassw - генератор паролей!gpassw- очень простой в использовании генератор паролей для Вашех потребностей.Тестовая функцияpassword.check(password)- тестовая функция. Возможно по некоторым причинам будет удалена, и в будущем добавлена с новыми возможностями!Минимальный пример использованияfromosimportsystemtry:fromcoloramaimportStyle,Fore,initinit()except:system("pip install colorama")fromcoloramaimportStyle,Fore,initinit()try:fromgpassw.functionsimportpasswordexcept:system("pip install gpassw")fromgpassw.functionsimportpasswordimportgpassw.configasconfigname=input("Напиши своё имя: ")print(f"Привет,{name}! Сейчас подберём для тебя оптимальный пароль...")passw=password.medium(10)#Генерация среднего пароляchecking=password.check(passw)#Проверяем пароль на надёжностьprint(checking)ifchecking==None:#Если пароль надёжен на 100%print(Fore.GREEN+"Ваш пароль надёжен."+Style.RESET_ALL)eliflen(checking)<2orlen(checking)==2:#Если пароль ненадёжен на два пункта или меньше (Из 5)print(Fore.GREEN+"Ваш пароль надёжен."+Style.RESET_ALL)else:print(Fore.RED+"Ваш пароль ненадёжен."+Style.RESET_ALL)#Если пароль нёнадёжен на >2 пунктаprint(f"Мы подобрали тебе пароль -{passw}Окей?")answer=input("Да/Нет: ")ifanswer=="Да"oranswer=="да":print("Теперь напиши пароль, который мы тебе подобрали для входа в аккаунт.")else:raiseSystemExit(1)hello_password=input("Пароль: ")whilehello_password!=passw:print(Fore.RED+"Пароль неверный."+Style.RESET_ALL)hello_password=input("Пароль: ")print("Вы успешно вошли!")Как установить?Всего лишь требуеться просто прописать команду в консоли:pip install gpassw
Package: gpaw
CoverageGPAWGPAW is a density-functional theory (DFT)Pythoncode based on the
projector-augmented wave (PAW) method and the atomic simulation environment
(ASE). It uses plane-waves, atom-centered basis-functions or real-space
uniform grids combined with multigrid methods.Webpage:https://wiki.fysik.dtu.dk/gpawRequirementsPython3.8 or laterASENumPySciPyLibXCA C compilerABLASlibraryOptional (highly recommended for increased performance):AMPIlibrary (required for parallel calculations)BLACSandScaLAPACKlibrariesFFTWSeeRelease notesfor version requirements.InstallationDo this:$ python3 -m pip install gpawand make sure you have~/.local/binin your $PATH.For more details, please see:https://wiki.fysik.dtu.dk/gpaw/install.htmlTest your installationYou can do a test calculation with:$ gpaw testContactMailing list:gpaw-usersChat: #gpaw onMatrix.Bug reports and development:gitlab-issuesPlease send us bug-reports, patches, code, ideas and questions.ExampleGeometry optimization of hydrogen molecule:>>> from ase import Atoms
>>> from ase.optimize import BFGS
>>> from ase.io import write
>>> from gpaw import GPAW, PW
>>> h2 = Atoms('H2',
...            positions=[[0, 0, 0],
...                       [0, 0, 0.7]])
>>> h2.center(vacuum=2.5)
>>> h2.calc = GPAW(xc='PBE',
...                mode=PW(300),
...                txt='h2.txt')
>>> opt = BFGS(h2, trajectory='h2.traj')
>>> opt.run(fmax=0.02)
BFGS:   0  09:08:09       -6.566505       2.2970
BFGS:   1  09:08:11       -6.629859       0.1871
BFGS:   2  09:08:12       -6.630410       0.0350
BFGS:   3  09:08:13       -6.630429       0.0003
>>> write('H2.xyz', h2)
>>> h2.get_potential_energy()  # ASE's units are eV and Å
-6.6304292169392784Getting startedOnce you have familiarized yourself withASEandNumPy, you should take a
look at the GPAWexercisesandtutorials.
Package: gp.bootstrap
Create a~/.buildout/default.cfgif it doesn’t existCreate abuildout.cfgbased on~/.buildout/template.cfgif it doesn’t existDownload thebootstrap.pyscript if needed.Then runbin/buildout.Example:$ bootstrap           # bootstrap with sys.executable

$ bootstrap 2.5       # bootstrap with python2.5

$ bootstrap 2.5 -vvv  # extra buildout optionsNews0.3 (2013-11-03)Buildout 20.2Fix bootstrap url0.1Initial version
Package: gpcam
gpCAMgpCAM(gpcam.lbl.gov)is an API and software designed to make advanced Gaussian Process function approximation and autonomous data acquisition/Bayesian Optimization for experiments and simulations more accurate, faster, simpler, and more widely available. The tool is based on a flexible and powerful Gaussian process regression at the core. The flexibility stems from the modular design of gpCAM which allows the user to implement and import their own Python functions to customize and control almost every aspect of the software. That makes it possible to easily tune the algorithm to account for various kinds of physics and other domain knowledge and to identify and find interesting features, in Euclidean and non-Euclidean spaces. A specialized function optimizer in gpCAM can take advantage of HPC architectures for fast analysis time and reactive autonomous data acquisition. gpCAM broke a 2019 record for the largest exact GP ever run! Below you can see a simple example of how to set up an autonomous experimentation loop.UsageThe following demonstrates a simple usage of the gpCAM API (seeinteractive demo).!pipinstallgpcamfromgpcam.autonomous_experimenterimportAutonomousExperimenterGPimportnumpyasnpdefinstrument(data):forentryindata:entry["y_data"]=np.sin(np.linalg.norm(entry["x_data"]))returndata##set up your parameter spaceparameters=np.array([[3.0,45.8],[4.0,47.0]])##set up some hyperparameters, if you have no idea, set them to 1 and make the training bounds largeinit_hyperparameters=np.array([1,1,1])hyperparameter_bounds=np.array([[0.01,100],[0.01,100.0],[0.01,100]])##let's initialize the autonomous experimenter ...my_ae=AutonomousExperimenterGP(parameters,init_hyperparameters,hyperparameter_bounds,instrument_function=instrument,init_dataset_size=10,info=False)#...train...my_ae.train()#...and run. That's it. You successfully executed an autonomous experiment.my_ae.go(N=100)CreditsMain Developer: Marcus Noack (MarcusNoack@lbl.gov)
Many people from across the DOE national labs (especially BNL) have given insights
that led to the code in it's current form.
SeeAUTHORSfor more details on that.=======
History6.0.0 (2020-10-26)First release on PyPI.
Package: gpcc
gpccPython library and CLI tool to fetch information fromGCP Browser.This is a standardized classifier of products used across companies. The classification, however, cannot be inferred from the product barcode or even packaging. Companies use it only internally.Installationpython3-mpipinstallgpccCLI usage# download latest JSONs for all languagespython3-mgpcc# download latest JSON for a specified languagepython3-mgpcc--langnl# download into a specified directorypython3-mgpcc--output./gpc-dump/Python usageimportasyncioimportgpccfrompathlibimportPathasyncdefrun():langs=awaitgpcc.get_languages()output=Path('gpc-dump')awaitgpcc.fetch_files(output,langs)asyncio.run(run())
Package: gpc-cli
GitHub profile checkerCLI utility written in Python for detecting weak spots in GitHub profilesInstallationSince the CLI is written in Python you will have to first install python itself
and then runpipinstallgpc-cliAfter the installation you should have agpcnamespace available in your currently running user.UsageThis CLI implies 3 main types of commands:AuthorizationTo be able to fully scan your GitHub account, make sure to authorize through GitHub OAuth usinggpcloginProfilesYou can also locally save and remove GitHub profiles you are willing to scan.Usegpcprofileadd<username>to locally save a profile.
You can also remove, list all and remove all profiles.
Usegpcprofile--helpto further explore this.AnalysisThe analyzation command itself, that scans through the given profile and creates a summary that is stored in user's home directory in the gpc-data folder.
To create this summary, rungpcanalyze<username>NOTE:You can omit the username argument if you are already authorized and want to deep-analyze your own profile.You can also use this command with the--flflag to generate summaries for all the locally saved profiles.MotivationThe CLI was created with a purpose of helping developers on GitHub to clean up their possibly 'messy' profiles and organize
their projects.If you are applying for any IT related job, make sure totidyyour profile and this CLI will make it a way easier and
pleasant process.P.S.the CLI initializer wordgpcis just an abbreviation forgithub-profile-checkerYou can also read more about ways to clean your GitHub profile inthis medium article.LicenseMIT
Package: gpcg
gradient-projected-conjugate-gradientThis repository provides a Python implementation of the gradient projected conjugate gradient algorithm (GPCG) presented in[1]for solving bound-constrained quadratic programs of the form\text{argmin}_{ x_i \in [l_i, u_i] \text{ for } i = 1, \ldots, n } \,\, \frac{1}{2} x^T A x - b^T xwhere $b \in \mathbb{R}^n$ and $A \in \mathbb{R}^{n \times n}$ is a SPD matrix. Here the $l_i$ and/or $u_i$ may be infinite, e.g., we can solve quadratic programs with nonnegativity constraints.This implementation is still experimental. Install withpip install -e .orpython setup.py.References[1]Moré, J., & Toraldo, G. (1991). On the Solution of Large Quadratic Programming Problems with Bound Constraints. SIAM Journal on Optimization, 1(1), 93-113.