Giter Club home page Giter Club logo

anyone's Introduction

Anyone

Build Status PyPI version

Anyone is a very simple Python Package which parses the poem, 'anyone lived in a pretty how town' by E. E. Cummings.

# Installation
sudo pip3 install anyone

# Run the package in terminal
anyone

# unit test
git clone https://github.com/herereadthis/anyone.git
cd anyone
sudo pip3 install pytest
pytest

API

from anyone import anyone

# new instance
poem = anyone.Poem()

# author
poem.author
poem.get_author()

# title
poem.title
poem.get_title()

# publication
poem.publication
poem.get_publication()

# get verse
poem.get_verse(2)

# get line
poem.get_line(25)

About Python Packages

The real purpose of this package is build some solid Python foundations for future work.

So, it turns out nearly all of the documentation on building your own python package is either out of date or conflicting. Even the documentation on the official Python documentation is wrong at times. There's also spotty documentation for the TestPyPi sandbox that is out of date too.

Anyway, I guess the best thing to do for now is to use this package as a starting template.

You must create an account. There are actually two pypi pages; I'm not really sure which i the definitive source of truth, though doing anything to one site will affect the other.

You must create a .pypirc file

cd ~
touch .pypirc

# copy + paste the following:
# change your username and password to pyp credentials
[distutils]
index-servers=
    pypi

[pypi]
username = myusername
password = mypassword

Once you made a template package like anyone, you must install twine, which is the service to upload packages

pip install twine

Then try to build your distribution. It might work.

# be sure to be in your package directory at its root
python setup.py sdist

Now cross your fingers and hopefully the rest will work

# upload
twine upload dist/*

# moment of truth
pip install mypackgename

anyone's People

Contributors

herereadthis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.