Giter Club home page Giter Club logo

pyfancy-2's People

Contributors

andrewrodebaugh avatar cmccandless avatar cosmicwebservices avatar cruxicheiros avatar fossabot avatar hiccup01 avatar joker314 avatar rogersouza avatar themonsterfromthedeep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pyfancy-2's Issues

Shorthand function names

(Related: this comment)

I think it would be nice if there was some shorthand for pyfancy().parse("...") because it seems like it's a really useful function for static text, such as in a text-based game (e.g. things like pyfancy().parse("You open your {bold,green INVENTORY}").output())

I'm not quite sure what a good shorthand name would be, or if we would want shorthand names for other functions too, or maybe if we would want to leave creating these functions to the user rather than the library (after all, it's not particularly hard to implement).

Thoughts?

Implement a testing framework

It would be nice to have an actual testing framework implemented that runs on our TravisCI script. We really don't care which one is used.

This should test all of the colors and functionality of the Pyfancy 2 library.

Publish on pip

What are you requesting?

We should have this published on pip so it can be more accessible.

Pyfancy v3

I want to start thinking about creating the next version of Pyfancy. Just some things I want to do. Instead of just styling the terminal I now want Pyfancy to work for all things terminal such as progress bars, menus and better inputs. I also want it to be cross-compatible and light weight.

  • Better formatting based on bbcode or markdown.
  • Progress bars
  • Menu select
  • Long console prints with "scroll bars"
  • Plugins?

Also some non-coding things:

  • Better website
  • Pip (finally)
  • Better review system
  • Cleaner file system

Remove pip things.

Problem Template

#31 is not working so I need to remove pip stuff until I can fix it

Pyfancy rewrite?

A user @joker314 sugested a rewrite that instead of pyfancy.<color> do <color>(). Tell me how you guys think about this...

Note this would be Pyfancy 2.0!

Import is broken

What SHOULD happen?

Import should be parsed.

What DOES happen?

Import is printed

Steps to reproduce

  1. Run demo in travis

Python version and OS

Travisci
Python 2.7 and MacOS High Siera

Other (logs, code or anything else that is important)

Meta

Two things:

a) Please may I be added to the repo
b) Make sure we use the peer-reviewed pull request system, how about one person must review your code before it is merged?

'module' object is not callable

>>> import pyfancy
>>> pyfancy().red("Hello, world!").output()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable

Proper attribution?

I'm not suuuper concerned about this, but the current credit, which simply points to the contributions graph, puts me as one of the smallest contributors to the project, which makes me a little uncomfortable, as I have contributed most of the current codebase.

I'm not actually entirely sure how the contribution graph got to the place that it is.

Perhaps the document should also link to the graph for my fork, which is where a lot of the current code comes from?

Background colors

Is there any more colors available to the terminal? If there are can we add more to pyfancy?

Contributing Guide

I guess we are working on this again so I guess we need to lay out how to contribute.

  • Every PR must be reviewed by one other person at the least before getting merged.
  • Proper tags must be used for organization + communication reasons.
  • Travis must pass before merging (after I fix it).
  • If you want to tackle an issue assign yourself or if you want to suggest someone else assign them.

Anything else?

Tagging @TheMonsterFromTheDeep @joker314 @Jonathan50

Markdown/bbcode or other markup language support

What are you requesting?

It would be great if the pyfancy parsing also had basic markdown/bbcode or other markup language support.
Related #36

How could this be implemented.

pyfancy("#Bold").output()

pyfancy().parse("[color=red]RED![/color]")

got error

after run demo(), the following error came out in Python 2.7 or 3.5 on Mac El Capitan

File "<stdin>", line 1, in <module>
  File "pyfancy/pyfancy.py", line 27, in <module>
    get = idleorcommandline()
  File "pyfancy/pyfancy.py", line 17, in idleorcommandline
    c = a[b - 1]
IndexError: string index out of range

Document parsing

What are you requesting?

Ability to easily import text files with the parse codes in them.

How could this be implemented.

pyfancy().import("format.txt").output()

Error

I got #1 when I ran import * from pyfancy inside of python:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyfancy.py", line 27, in <module>
    get = idleorcommandline()
   File "pyfancy.py", line 17, in idleorcommandline
    c = a[b - 1]
IndexError: string index out of range

Licence

Do you have one? Where is it found, there should be a licence file and a comment at the top of every pertinent (how do you spell pertanant?) file

Remove .parse()?

What are you requesting?

We have implemented pyfancy("stuff to parse") should we remove .parse()?

Clear/Reset output

What are you requesting?

Make a function that simply clears the output just in case for some reason you need to use the same chain.

How could this be implemented.

Really easy working on PR

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.