Saravanan666/pypi-org huggingface dataset:
Package: nft
A python script for quickly creating aNewFile form aTemplateInstalling$ pip install nftRunningJust like that, we should be in business. NFT works something like the touch command but instead of creating empty files, nft creates
boilerplate files from the template. The first time you run nft, it will ask a few questions to better fill out the template. Try it out with something
like:$ nft test.javaWhich created the following file:/*-------------------------------------
test.java
temp_project
    by Daniel Richards (ddrichar@ucsc.edu)
    Copyright © 2019 Daniel Richards. All rights reserved.
--------------------------------------*/

import java.util.*;
import java.lang.*;
import java.io.*;

public class test
{
        public static void main(String args[])
        {
                System.out.println("New Java file created from template");
        }
}Other File TypesNFT can make the following kinds of source files:C files and headersJavaPythonRubyShell (bash and Csh)NFT can also build non-source files. The standard README types are included:README (txt)README.md (markdown)README.rst (restructured text)Any of these can be run as follows:$ nft README.mdNOTEIf you want to reenter your name or email or recompile the list of templates (if you added a new template) use:$ nft setupAuthorsDaniel RichardsLicenseSee ./LICENSE
Package: nftlabs-sdk
NFTLabs Python SDKPyPi package foundhere.Deprecation Notices1 of 2Thenftlabs-sdkpypi package will be deprecated on November 30th, 2021Please make sure you install the newthirdweb-sdkpackage foundhereIn your code, update all imports to use thethirdwebpackage and switch to using theThirdwebSdkpackage (instead of theNftlabsSdkpackage)2 of 2Thecollectionmodule has been renamed tobundleand will be deprecated on November 30th, 2021All references tocollectionmodule and its associated classes should be updated tobundleand its newely created classes.You can find the detailed documentation for thebundlemodulehereDocshttps://docs.nftlabs.coAPI Referencehttps://python-docs.nftlabs.co/Installing the SDK$pipinstallthirdweb-sdkPackage Structurenftlabs
├── abi       // contains autogenerated ABI contract wrappers 
├── errors    // commonly thrown errors
├── modules   // NFT, Currency, Marketplace, Pack, Bundle, etc modules
├── options   // Options classes used throughout the SDK
├── sdk.py    // NftlabsSdk class, wrapper for the entire package
├── storage   // Distributed file storage helper classes
└── types     // Types consumed by some of the methods exposed in the modulesCalling the modulesYou can call the NFTLabs modules by instantiating an SDK object and fetching the module with your contract address
like this:importosfromnftlabsimportNftlabsSdk,SdkOptionssdk=NftlabsSdk(SdkOptions(),"https://rpc-mumbai.maticvigil.com")# polygon testnet as an example# Assumes your private key is assigned to the `PKEY` environment variablesdk.set_private_key(os.getenv("PKEY"))# Put your NFT contract address here if you want to mint your own NFTs!nft_module=sdk.get_nft_module("0xbDfF8fb43688fB4D2184DF8029A7238ac1413A24")print(nft_module.total_supply())DevelopmentGenerating ABI wrappersTheabipackage contains autogenerated code compiled by the
0xchainabi-gentool foundhere.Our protocols are developer atthis repo.Install theabi-gencli tool and use it to compile abi wrappers like this:$# assumes you have the nftlabs-protocols repo cloned in the parent directory$abi-gen--languagePython-onftlabs/abi--abis../nftlabs-protocols/abi/NFT.jsonAnytime there are ABI contract changes, you should regenerate the abi wrappers.Writing DocumentationThis package usesPyDoctorto auto-generate docs. Each method, class and variable should have a detailed description of what it is meant for as a comment enclosed in triple quoation marks (""" """) just below the line they are defined.Example:Do:defmy_method(self,arg1,arg2):"""This part goes into the documentation."""returnarg1+arg2Don't:"""This part will not go into the documentation."""defmy_method(self,arg1,arg2):returnarg1+arg2Addtionally, each module should also have a docstring at the top of the file. This will be used as a breif descroption of the module on thehomepage of the documentation.Example:1"""Interact with the NFT module of the app"""# docstring2# Module code starts from here3# ...
Package: nftl-ed-lms-tools
Library: nftl-ed-lms-toolsThis is a tool for Ed LMS API handling.Source documentation of api is availableherePyPI project pageInstallationpipinstallnftl-ed-lms-toolsUsagefromnftl_ed_lms_tools.clientimportEdCliented=EdClient(token='xoxp-...')users=ed.get_users_api().get_users()ifusers:print('Yupi!')InterfaceUsersfromnftl_ed_lms_tools.clientimportEdCliented=EdClient(token='xoxp-...')users=ed.get_users_api().get_users()ifusers:print('Yupi!')Available methodsget_users()Get a list of users.API referenceArgs:
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when successcreate_or_update_user()Create or update a user.API referenceArgs:
    user_data: user data to create or update
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when successget_external_token()Get users authentication token by externalId.API referenceArgs:
    external_id: users external identifier
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when successget_token()Get users authentication token by user id.API referenceArgs:
    user_id: users external identifier
    token: optional auth token that will overwrite EdApi token    
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when successUser groupsfromnftl_ed_lms_tools.clientimportEdCliented=EdClient(token='xoxp-...')groups=ed.get_usersgroups_api().get()ifgroups:print('Yupi!')Available methodsget()Get a list of user groups.API referenceArgs:
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or user groups info as
    :py:class:`typing.List` when successcreate_or_update_group()Create or update a user group.API referenceArgs:
    group_data: group data to create or update
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or group info as :py:class:`typing.Dict`
    when successDeployment how toAvailablehere
Package: nftools
nftoolsA CLI for managing your solana nft collection.Free software: MIT licenseRequirementspython3.7installed.solana-cli-toolsinstalled.spl-token-cliinstalled.Getting StartedWith requirements installed, and python3.7 active and on path (or in virtual environment):Install nftools:pip install nftoolsVerify installation:nftools --versionIf successful, should outputnftools, version 1.0.7aView available methods:nftools --helpRun your first command:nftools snapshotREADYCreate Whitelist TokenCreate whitelist token (0 decimals) and mint specified amount to your wallet.$ nftools create-whitelist-tokenTake Holder SnapshotTake snapshot of active holders for specified collection.
Captures wallet address, nft token address, and nft token account address.
Save in your specified format (json, csv, xlsx)$ nftools snapshotGet Hash ListGet list of nft token addresses for specified collection. Save in your specified format (json, csv, xlsx)$ nftools get-hash-listGet Collection NFts HeldGet # of collection NFTs held by owner. Save in your specified format (json, csv, xlsx)$ nftools get-holdersWIPGet Collection Metadata$ nftools get-metadataTODOCollection Airdrop$ nftools airdrop-collectionHistory0.1.0 (2022-08-14)First release on PyPI.
Package: nftscan-api
NFTScan NFT API Python 3 wrapperA library providing Python 3 bindings for theNFTScan APIThis library is in Alpha / Early Alpha state, and is untested / provided as is. Feel free to open PRs or bug reports for issues, features or extensionsInstallation:pip install nftscan-apiUsage:Get a key and secret. Then, check out the api endpoints listed, eg (getGroupByNftContract)[https://developer.nftscan.com/doc/#operation/getAllNftByUserAddressUsingPOST] - and try to use themfrom nftscan import NftScanAPI
nftScan = NftScanAPI(
    apiKey=<key>,
    apiSecret=<secret>)
test_wallet = "0x3becf83939f34311b6bee143197872d877501b11"

print(nftScan.getGroupByNftContract(erc="erc721", user_address=test_wallet))If looking to also use pro api endpoints:from nftscan import NftScanAPI
nftScanPro = NftScanProAPI(
    apiKey=<key>,
    apiSecret=<secret>)
test_wallet = "0x3becf83939f34311b6bee143197872d877501b11"
test_nft = "0xffe572aee5cded696f617125aa66b9746960f4ec"

print(nftScanPro.getGroupByNftContract(erc="erc721", user_address=test_wallet))
print(nftScanPro.getNftByContract(nft_address=test_nft))Write json encoded response to a file:nftScan.getGroupByNftContract(erc="erc721", user_address=test_wallet, export_file_name='out.txt'))0.1.4 (2022-04-14)Partial support for pro API
Fixed missing dependencies and bad formatting for requirements.dev.stxt0.1.3 (2022-03-31)Moved source repo to main NFTScan github org -https://github.com/nftscan2022/nftscan-api-python-sdk0.1.2 (2022-03-31)Bugfixes:page_index should start at 1removed spurious "walletType" argument accidentally sent to  "getAllNftByUserAddress" endpoint0.1.1 (2022-03-31)Fixed a corner case for dumping response data to file0.1.0 (2022-03-30)Created
Package: nftsets
NFT SetsVerified Sets of NFT CollectionsDependenciespython3version 3.7 or greater, python3-devInstallationviapipYou can install the latest release viapip:pipinstallnftsetsviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/nftsets.gitcdnftsets
python3setup.pyinstallQuick UsageNOTE:Work in Progress!>>>fromnftsetsimportManager>>>nsm=Manager()>>>nsm.available()[]>>>nsm.install("nfts.opensea.eth")>>>nsm.available()["opensea"]>>>print(*(set.nameforsetinnsm.get_collections()))PUNKSBAYC...DevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.LicenseThis project is licensed under theApache 2.0.
Package: nfuzz
NFuzzNFuzz has been created to conduct fuzzy testing and it is based on a simple concept: it generates the FUZZ keywords by an excellent fuzz grammar method that is created by this job. And it also provides a simple WebFuzzer for daily use.InstallationTo install NFuzz, simply use pip:pip install nfuzzUsageA simple webFuzzer example base on Baidu homepage:from nfuzz.WebFuzzer import WebFormFuzzer
from nfuzz.WebFuzzer import WebRunner
import requests
if __name__ == "__main__":
    print('\n### A WebFormFuzzer')
    httpd_url = "https://www.baidu.com/"
    base_url = "https://www.baidu.com/"
    web_form_fuzzer = WebFormFuzzer(httpd_url)
    web_form_fuzzer.fuzz()
    web_form_runner = WebRunner(base_url)
    out = web_form_fuzzer.runs(web_form_runner, 100000)
    print(out)Generate random charactersfrom nfuzz.Fuzzer import RandomFuzzer
if __name__ == "__main__":
    print('\n### Generate random characters')
    fuzzer = RandomFuzzer()
    print(fuzzer.fuzz())Generate random charactersfrom nfuzz.Fuzzer import RandomFuzzer
if __name__ == "__main__":
    print('\n### Generate random characters')
    fuzzer = RandomFuzzer()
    print(fuzzer.fuzz())Generate random characters with MutationFuzzerfrom nfuzz.MutationFuzzer import MutationFuzzer
seed_input = "http://www.baidu.com/"
mutation_fuzzer = MutationFuzzer(seed=[seed_input])
for i in range(20):
    inp = mutation_fuzzer.fuzz()
    print(inp)Generate random characters with GrammarFuzzerfrom nfuzz.GrammarFuzzer import GrammarFuzzer
URL_GRAMMAR = {
    "<start>": ["<url>"],
    "<url>":
        ["<scheme>://<domain><path><query>"],
    "<scheme>":
        ["http", "https"],
    "<domain>":
        ["<host>", "<host>:<port>"],
    "<host>":  # Just a few
        ["www.baidu.com", "lofter.com"],
    "<port>":
        ["80", "8080", "<nat>"],
    "<nat>":
        ["<digit>", "<digit><digit>"],
    "<digit>":
        ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
    "<path>":  # Just a few
        ["", "/", "/<id>"],
    "<id>":  # Just a few
        ["abc", "def", "x<digit><digit>"],
    "<query>":
        ["", "?<params>"],
    "<params>":
        ["<param>", "<param>&<params>"],
    "<param>":  # Just a few
        ["<id>=<id>", "<id>=<nat>"],
}

if __name__ == "__main__":
    f = GrammarFuzzer(URL_GRAMMAR, log=False, min_nonterminals=10)
    for i in range(10):
        res = f.fuzz()
        print(res)
Package: nf-validator
<<<<<<< HEAD
NF Validator
A simple and easy to use package for validating names and surnames written in Unicode.InstallationYou can install the nf_validator package using pip. To do so, open a terminal and run:pip install nf_validatorUsageHere is an example of how to use the nf_validating function from the nf_validator package:import nf_validator

name = "JÃ¼rgen MÃ¼ller"

valid_name = nf_validator.nf_validating(name)

if valid_name:

    print("Name is valid:", valid_name)

else:

    print("Name is not valid")In this example, the nf_validating function takes a string as an argument, splits it into a list of words, and then joins the words back into a single string. The resulting string is then normalized using the NFKD normalization form and encoded into ASCII, while ignoring any invalid characters. The final step is to check if the resulting string consists only of alphabetic characters. If so, the name is considered valid and the original, non-normalized string is returned. If not, the function returns False.Contributing
If you would like to contribute to this package, please feel free to submit a pull request. All contributions are welcome!License
This project is licensed under the MIT License. See the LICENSE file for details.NF_validatingA simple Name Validation package, you can easily verify the validity of names in just a few lines of code
Package: nfv-manager
Copyright © 2016-2018SoftFIREandTU Berlin. Licensed underApache v2 License.NFV ManagerThe SoftFIRE NFV Manager is one of the managers in the SoftFIRE
middleware. It is responsible for handling Network Function
Virtualization (NFV) resources used by experimenters. It interfaces with
Open Baton for this purpose. It is also in charge of triggering the
creation and removal of users and projects in Open Baton and OpenStack.The figure below depicts the workflow of the NFV Manager.For more information on how to use the NFV resources visit thedocumentation.Technical RequirementsThe NFV Manager requires Python 3.5 or higher.Installation and configurationYou can install the NFV Manager using pip:pip install nfv-managerand then start it with thenfv-managercommand.Or you can run it from source code by cloning the git repository,
installing the dependencies as specified in thesetup.pyfile and
executing thenfv-managerscript.The NFV Manager needs a configuration file present at/etc/softfire/nfv-manager.ini. An example of the configuration file
can be foundhere.Issue trackerIssues and bug reports should be posted to the GitHub Issue Tracker of
this project.What is SoftFIRE?SoftFIRE provides a set of technologies for building a federated
experimental platform aimed at the construction and experimentation of
services and functionalities built on top of NFV and SDN technologies.
The platform is a loose federation of already existing testbed owned and
operated by distinct organizations for purposes of research and
development.SoftFIRE has three main objectives: supporting interoperability,
programming and security of the federated testbed. Supporting the
programmability of the platform is then a major goal and it is the focus
of the SoftFIRE’s Second Open Call.Licensing and distributionCopyright © [2016-2018] SoftFIRE projectLicensed under the Apache License, Version 2.0 (the “License”);you may not use this file except in compliance with the License. You may
obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: nfv-toscaparser
Team and repository tagsTOSCA ParserOverviewThe TOSCA Parser is an OpenStack project and licensed under Apache 2. It is
developed to parse TOSCA Simple Profile in YAML. It reads the TOSCA templates
and creates an in-memory graph of TOSCA nodes and their relationship.ArchitectureThe TOSCA Parser takes TOSCA YAML template or TOSCA Cloud Service Archive (CSAR)
file as an input, with optional input of dictionary of needed parameters with their
values, and produces in-memory objects of different TOSCA elements with their
relationship to each other. It also creates a graph of TOSCA node templates and their
relationship.The ToscaTemplate class located in the toscaparser/tosca_template.py is an entry
class of the parser and various functionality of parser can be used by initiating
this class. In order to see an example usage of TOSCA Parser from a separate tool,
refer to the OpenStack heat-translator class TranslateTemplate located in the
translator/osc/v1/translate.py module. The toscaparser/shell.py module of tosca-parser
also provides a good reference on how to invoke TOSCA Parser from Command Line Interface.The toscaparser/elements sub-directory contains various modules to handle
various TOSCA type elements like node type, relationship type etc. The
entity_type.py module is a parent of all type elements. The toscaparser
directory contains various python module to handle service template including
topology template, node templates, relationship templates etc. The
entity_template.py is a parent of all template elements.How To UsePlease refer todoc/source/usage.rstProject InfoLicense: Apache License, Version 2.0Source:http://git.openstack.org/cgit/openstack/tosca-parser/
Package: ng
Get password of the wifi you’re connected, and your current ip address, supports linux, macos, windows.☤ QuickstartGet your ip address:$ ng ip
`
local_ip:192.168.1.114
public_ip:49.4.160.250
`Get wifi password:$ ng wp
$ ng wp flyfish_5g
`
flyfish_5g:hitflyfish123456
`☤ InstallationYou can install “ng” via pip fromPyPI:$ pip install ng☤ Usage$ ng --help
Usage: ng [OPTIONS] COMMAND [ARGS]...

  Get password of the wifi you're connected, and your current ip address.

Options:
  --help  Show this message and exit.

Commands:
  ip  Show ip address.
  wp  Show wifi password.
Package: ng2django
ng2djangoThis is a simple Python tool that will convert an HTML file built by Angular2+ to Django Template Language. This way static files can be made available to an Agnular app that is served up with a Django project.The script basically does two things:Adds a{% load static %}tag to the top of the fileChanges the value ofhrefandsrcattributes oflinkandscripttags to{% static "<path-to-the-file>" %}DependenciesThe script uses Beutifulsoup4. You can install it by runningpip install -r requirements.txt.InstallJust run$ pip install ng2djangoUsageBuild your Angular app and place the files in<Django-project-root>/<app>/static/<optional-subdirectory>/.The script takes two positional arguments:source: The path to the HTML file you want to convert.dest: Where you want the Django Template file saved.Then you can run$ ng2django <Django-project-root>/<app>/static/index.html <Django-project-root>/<app>/templates/index.htmlif you are storing your files directly in your Django app'sstaticandtemplatesdirectories (not recommended), or$ ng2django <Django-project-root>/<app>/static/<optional-subdirectory>/index.html <Django-project-root>/<app>/templates/<optional-subdirectory>/index.html -s <optional-subdirectory>if you are using some subdirectory of those paths.Optional ArgumentsShortLongDescription-s<subdir>--subdir<subdir>Include the subpath under<Django-app>/static/where your static files are stored.-css<cssdir>--cssdir<cssdir>Include the subpath under<Django-app>/static/<optional-subdir>/css/where your static CSS files are stored.-js<jsbdir>--jsdir<jsir>Include the subpath under<Django-app>/static/<optional-subdir>/js/where your static JS files are stored.-img<imgbdir>--imgdir<imgdir>Include the subpath under<Django-app>/static/<optional-subdir>/img/where your static IMAGE files are stored.-n--nodeleteDo not delete the source file after converting.-p--prettyCreate a dest file that is more human readable.Recommended Setup and UsageIn you Angular project open yourpackage.jsonfile. Underscripts, changebuildtong build --prod --output-path <Your-django-project-root>/<Django-App>/static/ng.Add apostbuildkey underscriptand set the value tong2django <Your-django-project-root>/<Django-App>/static/ng/index.html <Your-django-project-root>/<Django-App>/templates/ng/index.html -s ng.Or if you have css / js / images in seperate directories within static use args: -css css -js js -img imgng2django <Your-django-project-root>/<Django-App>/static/ng/index.html <Your-django-project-root>/<Django-App>/templates/ng/index.html -s ng -css css -js js -img img.Runnpm run buildand your Angular JS and CSS files will be saved to your Django app's static directory. Then, this script will run and convert your HTML file and save it in your Django app's templates directory.ContributingContributions are welcome - submit an issue/pull request.Push to PyPiUse these commands to release on PyPirm -rf dist/ build/python setup.py sdisttwine upload dist/*
Package: ng2web
ng2web - Norton Guide to HTML conversion toolCurrently a work in progress to help test the work being done onngdb.py.Quick and dirty introductionInstall withpipor a similar tool and then you'll have ang2webcommand
available. Given a Norton Guide database, just run the tool like this:$ng2webC52G01B.NGand you'll end up with lots of HTML files and a CSS file in your current
directory. If you'd prefer to output elsewhere, use--output:$ng2webC52G01B.NG--output=webMore comprehensive documentation is to come, plus more features and options
(including documentation on how to override the default look/feel of the
generated HTML.)
Package: ngalerie
NGalerie is a Python project that aim to enable fast management of
Reflex Camera pictures.The picture are store in landscape way even if they shouldn’t, there
is a miniature file inside that we could remove.We also want to be able to resize them at a usable size, create
external thumbnails and give them a meaningful name such as the date
of picture’s shots.NGalerie is a CLI software with useful function to make it do what we
want.