Skip to main content

Empty example PYPI package by The1bit

Change log

  • version 0.0.1.11
    • Basic unittest for Core module

    • Documentation

  • version 0.0.1.6
    • Execute this from command-line (pypr -v)

  • version 0.0.0.1
    • Init files and directory structure

Requirements

  • Linux OS or Windows OS

  • Python (2.7)

Basic install

pip install pypi-project --upgrade

(install without cache: pip install pypi-project –no-cache-dir )

You can find the detailed documentation in https://github.com/the1bit/pypi-project.

Usage

From command line

  • Usage:
    • pypr –version

    • pypr core –input TEXT

    • pypr core -i TEXT -o string

    • pypr core -i TEXT –output json

  • Arguments:

  • Options:
    • -h –help show this help message and exit

    • -v –version show version and exit

    • –verbose print status messages

    • -i –input set input and exit

    • -o –output output format default is string. Possible values: string, json

You merely type the pypr command to commandline with the required parameters. * pypr –version or pypr -v : Get version of our package * pypr core –input TEXT * or *pypr core -i TEXT -o string : Write out to screen the TEXT in string format. (module: core) * ` pypr core -i TEXT --output json ` : Write out to screen the TEXT in json format. (module: core)

From Python

Import the required module from pypiproject package in python

import pypiproject

Examples

From command line

1. Get version:

pypr -v

Result: .. code-block:

0.0.1.11

2. Write out text in string format:

pypr core -i "Hello World"

Result:

Hello World

3. Write out text in json format:

pypr core -i "Hello World" -o json

Result:

[{'text': 'Hello World'}]

From Python

Every example assumes you are in python shell

2. Write out text in string format:

from pypiproject.core.pypiproject_core import *
getText("Hello World")

Result:

Hello World

3. Write out text in json format:

from pypiproject.core.pypiproject_core import *
getText("Hello World", "json")

Result:

{'text': 'Hello World'}

Known issues

Permission denied on /usr/bin/pypr

Sometimes you are facing the following issue when you execute the pypr command:

-bash: /usr/bin/pypr: Permission denied

Solution to execute the following command:

sudo chmod +x /usr/bin/pypr

Command not found on /usr/bin/pypr

Although the package is well prepared sometimes you are facing the following issue after a package update when you execute the pypr command:

/usr/bin/pypr: line 2: $'\r': command not found
/usr/bin/pypr: line 19: syntax error: unexpected end of file

Solution to execute the following command:

sudo dos2unix /usr/bin/pypr

LICENSE (MIT)

Copyright (c) 2019

Permission 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.

Metadata

Release files for pypi-project 0.0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypi-project 0.0.1.11
File Size Uploaded Provenance Actions
pypi-project-0.0.1.11.tar.gz 6.1 kB Without provenance Details for pypi-project-0.0.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypi-project 0.0.1.11
File Interpreter ABI Platform Actions
pypi_project-0.0.1.11-py2.py3-none-any.whl Python 3, Python 2 none any Details for pypi_project-0.0.1.11-py2.py3-none-any.whl

Total release size: 13.1 kB

Release files / pypi-project-0.0.1.11.tar.gz

Download URL pypi-project-0.0.1.11.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7a6bb65d57f6ad194a2aeeca8fa56831f0d7863aed32cd78bf5448a0b2087c90
BLAKE2b-256 checksum
How to use checksums
512167f62cdbb615a563b993bfc555765640997a9cb5bc474c58ef09161350de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.14

Release files / pypi_project-0.0.1.11-py2.py3-none-any.whl

Download URL pypi_project-0.0.1.11-py2.py3-none-any.whl
Size 7.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2c4f1a9e50cc04a65186ccb23b8a6d88b1531e90a680146a01084906d4fd1e90
BLAKE2b-256 checksum
How to use checksums
604975fc7a09409917586ead7723d9a26977853ca156e22c970ca31eef6910e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.14

Security for pypi-project 0.0.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page