Saravanan666/pypi-org huggingface dataset:
Package: offset
Offset- What is this?To encode & decode by shift text(Symmetric encryption).- How to installpipinstallOffset- How to useModuleImportfromoffsetimportOffsetConvert text through a public methodOffset.convert(text,number)CLIBasic mode:offset-n10-s'Hello'File mode:The new file will be stored at '~/offset_export/filename_%Y%m%d_%H%M%S.ext'offset-n10-f'/filepath/and/filename.ext'Interactive modeyou can give it a default without enter a number every single time.offset-i[-nint]GUI(IN PROGRESS)If you like my work, please consider buying me a coffee orPayPalThanks for your support! Cheers! 🎉
Package: offsets-db-data
carbonplan / offsets-db-dataUtilities for cleaning, and processing data for thecarbonplan/offsets-db-webInstallationTo install the package, you can use pip:python-mpipinstallgit+https://github.com/carbonplan/offsets-db-data.gitYou can also install the package locally by cloning the repository and running:gitclonehttps://github.com/carbonplan/offsets-db-data.gitcdoffsets-db-data
python-mpipinstall-e.To install the dependencies for development, you can use pip:python-mpipinstall-e".[all]"# orpython-mpipinstall-e".[dev]"Building the documentationTo build the documentation locally, you can usesphinx. You can install the documentation dependencies by running:python-mpipinstall-rrequirements-docs.txt
python-mpipinstall.Then, you can build the documentation by running:sphinx-builddocsdocs/_buildYou can view the documentation by openingdocs/_build/index.htmlin your browser.licenseAll the code in this repository isMITlicensed. When possible, the data used by this project is licensed using theCC-BY-4.0license. We include attribution and additional license information for third party datasets, and we request that you also maintain that attribution if using this data.about usCarbonPlan is a non-profit organization that uses data and science for climate action. We aim to improve the transparency and scientific integrity of carbon removal and climate solutions through open data and tools. Find out more atcarbonplan.orgor get in touch byopening an issueorsending us an email.
Package: offsettmpsubs
offsettmpsubsA cli tool for delaying/hastening subtitles in stored in TMP format.Installation$ pip install --user offsettmpsubsUsage$ offsettmpsubs --help
usage: offsettmpsubs [-h] OFFSET INFILE OUTFILE

Delay or hasten subtitles in MTP format.

positional arguments:
  OFFSET      amount of time, by which the timestamps in the output file
              should be delayed (if negative) or hasten. Examples of allowed
              values: "10" (delay by ten seconds), "-10", "+10", "-01:00"
              (hasten by one minute), "01:00:00" (delay by one hour)
  INFILE      file name of the original subtitle file
  OUTFILE     file name of the new file with delayed/hastened subtitles

options:
  -h, --help  show this help message and exit
$ head s05e09_subs_en.txt
00:00:02:Here are our final actual costs for this year.
00:00:05:Okay.
00:00:06:As you can see, we did pretty well, so...
00:00:08:Yes. Yes, I can see
00:00:11:that we did indeed.
00:00:14:Why don't you explain this to me|like I am an eight-year-old?
00:00:17:All right, well, this is the overall|budget for this fiscal year
00:00:21:along the X axis.
00:00:24:Yes. There's the X axix.|Right there.
00:00:26:You can see clearly on this page|that we have a surplus
$ offsettmpsubs 01:23 s05e09_subs_en.txt delayed.txt
$ head delayed.txt
00:01:25:Here are our final actual costs for this year.
00:01:28:Okay.
00:01:29:As you can see, we did pretty well, so...
00:01:31:Yes. Yes, I can see
00:01:34:that we did indeed.
00:01:37:Why don't you explain this to me|like I am an eight-year-old?
00:01:40:All right, well, this is the overall|budget for this fiscal year
00:01:44:along the X axis.
00:01:47:Yes. There's the X axix.|Right there.
00:01:49:You can see clearly on this page|that we have a surplus
Package: offsock
offsockUsage: offsock [OPTIONS] INPUT OUTPUT

  Print an image a grid offset pattern. Inspired by your favorite socks.

Options:
  -o, --offset / -O, --no-offset  Wether or not the grid should be offset by
                                  one.
  -r, --rows INTEGER              The height of the grid.
  -c, --columns INTEGER           The width of the grid.
  -p, --padding INTEGER           Additional padding to apply to the image.
  --help                          Show this message and exit.
Package: offtrac
= Welcome to Offtrac! =This is the Offtrac project.  It aims to be a python based xmlrpc client
library for trac instances.There is the offtrac python library which offers the !TracServer class.
This object is how one interacts with a Trac instance via xmlrpc.If you wish to hack on offtrac, please shootmailto:jkeating@redhat.coman
email or find “f13” on freenode IRC.  I’d love to have the help!To use offtrac, you can use the reference client ‘fedora-hosted’ in the
fedora-packager package in Fedora.{{{
python setup.py build
sudo python setup.py install –skip-build
}}}(this requires you have python-devel installed).  It will install
the offtrac python library in your standard python library path.What it does right now:Query existing ticketsList existing milestonesGet information about particular ticketsGet information about particular milestonesCreate new ticketsCreate new milestonesAll authenticated! (via https)
Package: offvsix
offvsix: Offline Visual Studio Code Extension Downloaderoffvsixis a Python CLI utility designed to streamline the process of downloading Visual Studio Code extensions for offline installations. Whether you're preparing for a coding session without internet access or simply want to keep your favorite extensions handy,offvsixhas you covered!FeaturesDownload specific versions of extensions.Download extensions to a custom directory.Use a proxy server for downloading.Avoid redundant downloads with optional caching.Get detailed logs with verbose mode.Bulk download: Supply a text file with a list of extensions to download them all at once!InstallationYou can install the package from PyPI:pipinstalloffvsixOr for offline installation, download the wheel file and run:pipinstalloffvsix-<version>.whlUsageBasic usage:offvsix<publisher.extension>For example:offvsixms-python.pythonUsing a Text File:To download multiple extensions, you can use a text file where each line is an extension name:offvsix--fileextensions.txtOptions:--versionto specify the version.--destinationto specify the destination folder.--no-cacheto force re-download.--no-verbosefor less verbose output.--fileto specify a text file containing a list of extensions to download.--proxyto use a proxy server.ContributingAll contributions are welcome! Please refer to theCONTRIBUTING.mdfor guidelines.LicenseMIT Licensed. SeeLICENSEfor full details.Authorexaluc
Package: off-your-rocker
This adds extensions fortfoote/rocker.ExtensionsMountThis mounts paths as docker volumes.
The path used inside the container is the same as the path outside the container.
Multiple paths may be passed.
The last path must be terminated with two slashes – before the image name.rocker --oyr-mount ~/.vimrc ~/.bashrc -- ubuntu:18.04ColconThis addscolconto the docker image.rocker --oyr-colcon ubuntu:18.04SpacenavThis adds support for a 3Dconnexion SpaceNavigator and allows the docker container to use it.rocker --oyr-spacenav ubuntu:18.04CapabilitiesTwo plugins add support for adding or droping runtime linux capabilities.
For more information see [docker run –cap-add and –cap-drop documentation](https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities).rocker --oyr-cap-add SYS_PTRACE --ory-cap-drop ALL ubuntu:18.04Docker Run argsThis allows adding arbitray arguments to docker run.rocker --oyr-run-arg " --label foo=bar" ubuntu:18.04
Package: ofiber
by Scott PrahlA set of Python modules to calculate light propagation through optical fibers following
the approach presented inGhatak and Thyagarajan,An Introduction to Fiber Optics,Cambridge University Press (1980).For examples and use cases, see <https://ofiber.readthedocs.io>InstallationUsepip:pip install ofiberorconda:conda install -c conda-forge pygrinor use a Jupyter notebook immediately by clicking the Google Colaboratory button belowLicenseofiberis licensed under the terms of the MIT license.
Package: ofo
📦 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: ofpubsub
# Onlyfunction Pubsub### InstallationAdd dependency in yourrequirements.txtfileofpubsub## Kafkafrom ofpubsub import Kafkakafka = Kafka(‘access_key’, ‘secretkey’)kafka.publish(‘topic’, ‘key’, ‘message’)## RabbitMQfrom ofpubsub import RabbitMQrabbit = RabbitMQ(‘access_key’, ‘secretkey’)rabbit.publish(‘topic’, ‘message’)## License
MIT License
Package: ofpy
Command line to OmniFocus script, via email or Dropbox and HazelInstallationUsing pipsudo pip3 install ofpyYou may be able to get away withoutsudoif you’re using aHomebrewPython installation on OSX.Obviously replacepip3withpipif you’re still using python2 or
if python3 is the default on your system (e.g. Arch).ManuallyYou should also be able to justchmodand symlink toofpy.pywithout difficulty – that’s how I as doing it for the first several
versions. That said, if you’re doing a manual installation, I’ll assume
you know what you’re doing. In general:Download orgit cloneAdd ashebangtoofpy.py, e.g.#! /usr/bin/env python3Do something along the lines ofcdofpy/ofpychmodu+xofpy.pyln-s$PWD/ofpy.py/usr/local/bin/ofpyConfigurationRunofpywithout arguments. You should see a logging message
about creating~/.ofpy_config.Edit~/.ofpy_configand fill in your values.UsageInline from the command line.ofpy "This is my first task."Inline from the command line without quotes (watch out for apostrophes
and quotes)ofpy This is my second task.Compose the task in your favorite CLI editor (set in config, defaults to
vim).ofpyTroubleshotingInstallationDouble check permissions, e.g.ls-l/usr/local/bin/ofpy.More details athttp://n8henrie.com/2014/09/ofpy
Package: ofrak-binary-ninja
____  ______ _____            _  __
  / __ \|  ____|  __ \     /\   | |/ /
 | |  | | |__  | |__) |   /  \  | ' / 
 | |  | |  __| |  _  /   / /\ \ |  <  
 | |__| | |    | | \ \  / ____ \| . \ 
  \____/|_|    |_|  \_\/_/    \_\_|\_\
Package: ofrak-capstone
OFRAKOFRAK (Open Firmware Reverse Analysis Konsole) is a binary analysis and modification platform that combines the ability to unpack, analyze, modify, and repack binaries.Package: ofrak_capstoneOFRAK
└───ofrak
│   └───disassemblers
│       └───ofrak_angr
│       └───ofrak_binary_ninja
│       └───ofrak_capstone  <-- //YOU ARE HERE//
│       |   └───components.py
│       |   └───disassembler_service_capstone.py
│       └───ofrak_ghidra
└───ofrak_type
└───ofrak_io
└───ofrak_patch_maker
└───ofrak_tutorialThis package contains OFRAK components utilizing theCapstonedisassembler:CapstoneBasicBlockUnpackerfor unpackingBasicBlocks into their constituentInstructionsCapstoneInstructionAnalyzerfor re-analyzing anInstructionif its data is changedCapstoneInstructionRegisterUsageAnalyzerfor determining which register anInstructionreads/writesUnlike the other "disassembler" packages, this does not include aCodeRegionUnpackerorComplexBlockUnpackerto deconstruct a section of code into functions and basic blocks. It is useful for applications which:Work only with individual instructions or basic blocks.Also use one of the other packages underdisassemblers, which can handle the higher-level structures and leave the basic blocks to be handled byofrak_capstone.After installing the package, it can be used in an OFRAK script by adding the following to the setup step:importofrak_capstone...ofrak=OFRAK()...# Other setup stepsofrak.discover(ofrak_capstone)TestingThe tests forofrak_capstonerequire the tests to be installed for the core OFRAK module. These must
first be installed after downloading theOFRAK source code.Then, theofrak_capstonetests can be run with:pytest--pyargsofrak_capstone_testTestingThis package maintains 100% test coverage of functions.LicenseThe code in this repository comes with anOFRAK Community License, which is intended for educational uses, personal development, or just having fun.Users interested in using OFRAK for commercial purposes can request the Pro or Enterprise License. SeeOFRAK Licensingfor more information.DocumentationOFRAK has general documentation and API documentation, which can be viewed athttps://ofrak.com/docs.
Package: ofrak-components
____  ______ _____            _  __
  / __ \|  ____|  __ \     /\   | |/ /
 | |  | | |__  | |__) |   /  \  | ' / 
 | |  | |  __| |  _  /   / /\ \ |  <  
 | |__| | |    | | \ \  / ____ \| . \ 
  \____/|_|    |_|  \_\/_/    \_\_|\_\
Package: ofrak-ghidra
____  ______ _____            _  __
  / __ \|  ____|  __ \     /\   | |/ /
 | |  | | |__  | |__) |   /  \  | ' / 
 | |  | |  __| |  _  /   / /\ \ |  <  
 | |__| | |    | | \ \  / ____ \| . \ 
  \____/|_|    |_|  \_\/_/    \_\_|\_\
Package: ofrak-io
OFRAKOFRAK (Open Firmware Reverse Analysis Konsole) is a binary analysis and modification platform that combines the ability to unpack, analyze, modify, and repack binaries.Package: ofrak_ioOFRAK
└───ofrak
└───ofrak_type
└───ofrak_io  <-- //YOU ARE HERE//
│   └───batch_manager.py
│   └───deserializer.py
│   └───serializer.py
│   └───stream_capture.py
└───ofrak_patch_maker
└───ofrak_tutorialThis package contains some generally useful classes related to I/O, used in OFRAK.This package contains the following modules:ofrak_io.stream_capture: this module containsStreamCapture, a class which is useful for capturing standard out/error of C processes called in Pythonofrak_io.serializerandofrak_io.deserializer: these modules are base utilities for serializing and deserializing binary data.ofrak_io.batch_manager: this module containsAbstractBatchManager, a base class which aims to streamline batching numerous requests over some I/O channel.TestingThis package maintains 100% test coverage of statements.LicenseThe code in this repository comes with anOFRAK Community License, which is intended for educational uses, personal development, or just having fun.Users interested in using OFRAK for commercial purposes can request the Pro License, which for a limited period is available for a free 6-month trial. SeeOFRAK Licensingfor more information.DocumentationOFRAK has general documentation and API documentation, which can be viewed athttps://ofrak.com/docs.
Package: ofrak-patch-maker
OFRAKOFRAK (Open Firmware Reverse Analysis Konsole) is a binary analysis and modification platform that combines the ability to unpack, analyze, modify, and repack binaries.Package: ofrak_patch_makerOFRAK
└───ofrak
└───ofrak_type
└───ofrak_io
└───ofrak_patch_maker  <-- //YOU ARE HERE//
│   └───binary_parser   // Interface and implementations for class parsing symbols & sections from a binary
│   └───toolchain       // Interface and implementations for build toolchains
│   └───model.py
│   └───patch_maker.py
└───ofrak_tutorialThis package contains the OFRAK PatchMaker, a powerful tool for applying source-code patches to binary files.PatchMaker is a Python package for building code patch blobs from source and injecting them into an executable OFRAK
resource. Once a patch is applied to a Resource, it may be re-packed with OFRAK the same way as if only a string
modification were applied.PatchMaker takes additional steps beyond the typical C software build process to ensure that new code and data, provided
in C/asm source or binary form, land where they are supposed to and that linking against existing code and data in the
target binary is easy.Think of it as a way to compile custom code using the binary-under-analysis as a library. Normally a loader is
responsible for mapping external symbols correctly into the loaded executable's memory space. With PatchMaker the
process is inverted: once the patch is compiled, it can be injected into the host binary with the patch's external
symbols correctly linked to the host's internal symbols, without involving a loader.For more information, check theuser guide in the OFRAK docsas well as thecode references for PatchMakerand related classes.DependenciesThis Python package only includes the Python code for the PatchMaker and does not include any of the
toolchains which the PatchMaker utilizes! These would have to be
installed individually and added totoolchain.conf, which is bundled with this package.
An example of thetoolchain.confcan be foundhere,
and examples of how to install the toolchains can be foundhere.TestingThis package maintains 100% test coverage of functions.The tests forofrak_patch_makerare not distributed with this package.
If you wish to run the tests, download theOFRAK source codeand install/run the tests from there.LicenseThe code in this repository comes with anOFRAK Community License, which is intended for educational uses, personal development, or just having fun.Users interested in using OFRAK for commercial purposes can request the Pro or Enterprise License. SeeOFRAK Licensingfor more information.DocumentationOFRAK has general documentation and API documentation, which can be viewed athttps://ofrak.com/docs.
Package: ofrak-type
OFRAKOFRAK (Open Firmware Reverse Analysis Konsole) is a binary analysis and modification platform that combines the ability to unpack, analyze, modify, and repack binaries.Package: ofrak_typeOFRAK
└───ofrak
└───ofrak_type  <-- //YOU ARE HERE//
│   └───architecture
│   └───bit_width
│   └───endianness
│   └───error
│   └───memory_permissions
│   └───range
└───ofrak_io
└───ofrak_patch_maker
└───ofrak_tutorialThis package contains primitive types used across OFRAK packages, including:Range, an object used to represent a range of integers. Especially common when representing memory ranges.InstructionSet,SubInstructionSet,InstructionSetMode, andProcessor, enum classes representing various architecture information.BitWidthandEndiannessfor indicating data representations.NotFoundError,AlreadyExistError,InvalidStateError, andInvalidUsageError, which each represent a general type of error not covered by Python's built in exception classes.MemoryPermissions, an enum class of memory access permissions R, W, X, and valid combinations of such.TestingThis package maintains 100% test coverage of statements.LicenseThe code in this repository comes with anOFRAK Community License, which is intended for educational uses, personal development, or just having fun.Users interested in using OFRAK for commercial purposes can request the Pro or Enterprise License. SeeOFRAK Licensingfor more information.DocumentationOFRAK has general documentation and API documentation, which can be viewed athttps://ofrak.com/docs.
Package: ofry-fasatpi-auth-cognito
Basic User Management ProjectThis package is a ready to use user authentication and autorization managment system, Using FastAPI, PostgreSQL, and AWS Cognito JWT based authentication.Install Packagepip install ofry-fasatpi-auth-cognitopip install "git+https://github.com/tech1919/fastapi-auth-cognito.git"Configure EnvironmentConfigure.envfile:USERS_DATABASE_URL=postgres://username:password@host:port/database_name
COGNITO_REGION=
COGNITO_POOL_ID=Add the auth router to the FastAPI appimport:fromauth.routerimportauth_routerfromfastapiimportFastAPIdefine the app:app=FastAPI(title="API's name")include the auth router:app.include_router(router=auth_router,prefix="/auth")This router comes with a built in auth configuration for every route.Add authentication dependencyimport:fromauth.permissionimportPermissionCheckadd authentication and permission check to a route:@router.get("/secure",description="this route is an example for a secure route",dependencies=[Depends(PermissionCheck(statements=["resource:action"]))],)asyncdefsecure()->bool:return{"message":"You have access"}another way of adding authentication and permission dependency to a group of routes:# exampleapp.include_router(router=users.router,prefix="/users",dependencies=[Depends(PermissionCheck(statements=["resource:action"]))])# by adding this dependency, now every route# expect a JWT that can be authenticaded with the JWKS from AWS Cognitoif a request that was sent to this route, contain in theheaders:{
    "Authorization" : "Bearer some.json.webtoken"
}than, the route will check first if this is an authenticated one comes from the AWS Cognito UserPool, as specified in the relevant environment variableCOGNITO_POOL_ID. in this specific example , the route will also return the jwt cresentials as decoded from the JWT. this variable has this structure:{"jwt_token":"the original JWT string","header":{"kid":"NkMpoZmqv4UBEWkN/yCvN/W2rSFnHRswDa6PjiyAUuc=","alg":"RS256"},"claims":{"sub":"ec108666-34f7-4224-9ba7-89afe5aa6202","cognito:groups":["DEVELOPER"],"iss":"https://cognito-idp.us-east-2.amazonaws.com/us-east-2_JA8KShbIm","version":2,"client_id":"7hn1v7k92bq9thva39l0floorm","token_use":"access","scope":"aws.cognito.signin.user.admin openid profile","auth_time":1671202410,"exp":1671206010,"iat":1671202410,"jti":"7e97bdaf-b074-4bc4-931b-cb50d72482ea","username":"username string"},"signature":"the jwt signature string","message":"some string"}So there is a lot of information here about the user who sent the request and with which you can later decide what is displayed in the clientHandle ResourcesFor checking a user's permissions there is a class calledPermissionCheck. This class depend on the authentication method so by adding this as a dependency to a certain route, it automaticly check the JWT authentication and user's permissions.Every route in the API that depends on this class will be obliged to perform authentication with the JWT sent to it, and then search the database according to the groups that appear in the JWT's payload undercognito:groupsfor all the roles associated with this group.