Giter Club home page Giter Club logo

cereja's People

Contributors

ailton-felix avatar chillrx avatar dennymarcels avatar gabrielbrasileiro avatar jlsneto avatar joaovictorcosta avatar rickards avatar rodrigobastos avatar

Stargazers

 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

cereja's Issues

Progress is not completing for small values

  • Version: 1.1.0.final.0
  • Platform: Linux 00c891b4b673 4.14.137+ #1 SMP Thu Aug 8 02:47:02 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux

Resume

Passing small values (i have tested with values below of 10) the Progress is not completing.
Sample:

import cereja as cj

with cj.Progress('Progress', style='bar', max_value=10) as bar:
  for i in range(10):
    bar.update(i)

expected on finish operation:

🍒 Progress: [=============================>] Done! ✅ - Time: 0.5s

current behaviour:

🍒 Progress: [===========================>  ] Done! ✅ - Time: 0.5s

Add file data format converters

Is your feature request related to a problem? Please describe.

I would like to be able to transform data using the File class or python objects.

Describe the solution you'd like

It would be interesting to be able to read a .txt file for example and be easy to transform the data into various types of Python objects and other possible file formats.

Describe alternatives you've considered

It could simply be a function of the FileBase class or the child classes, or a new Transformation class for example, which would only have the job of formatting this data.

Interpolação rescale_values

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

Add Csv dataprep

Is your feature request related to a problem? Please describe.
I need group items by columns and more more more.

Improvement in Filetools

Is your feature request related to a problem? Please describe.
Files do not have intuitive attribute and function names

Describe the solution you'd like
be easy to understand

Describe alternatives you've considered

are just ideas ...
E.g:

1 - File.content_file to File.content_lines or File.data_lines

2 - File.content_str to File.content_string or File.data_string

3 - File.line_sep to File.end_line

4 - Write new file with File.new and edit with File.edit (need state control)

these are the main improvements I can see now.

Read .csv without column

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

Create .yml manipulator

  • Whitespace indentation is used for denoting structure; however, tab characters are not allowed as part of indentation.

  • Comments begin with the number sign (#), can start anywhere on a line and continue until the end of the line. Comments must be separated from other tokens by whitespace characters.[15] If # characters appear inside of a string, then they are number sign (#) literals.

  • List members are denoted by a leading hyphen (-) with one member per line.

    • A list can also be specified by enclosing text in square brackets ([...]) with each entry separated by commas.
  • An associative array entry is represented using colon space in the form key: value with one entry per line. YAML requires the colon be followed by a space so that scalar values such as http://www.wikipedia.org can generally be represented without needing to be enclosed in quotes.

  • An associative array entry is represented using colon space in the form key: value with one entry per line. YAML requires the colon be followed by a space so that scalar values such as http://www.wikipedia.org can generally be represented without needing to be enclosed in quotes.

    • A question mark can be used in front of a key, in the form "?key: value" to allow the key to contain leading dashes, square brackets, etc., without quotes.
    • An associative array can also be specified by text enclosed in curly braces ({...}), with keys separated from values by colon and the entries separated by commas (no spaces are necessary, for JSON compatibility).
  • Strings (scalars) are ordinarily unquoted, but may be enclosed in double-quotes ("), or single-quotes (').

    • Within double-quotes, special characters may be represented with C-style escape sequences starting with a backslash (). According to the documentation the only octal escape supported is \0.
  • Block scalars are delimited with indentation with optional modifiers to preserve (|) or fold (>) newlines.

  • Multiple documents within a single stream are separated by three hyphens (---).

    • Three periods (...) optionally end a document within a stream.
  • Repeated nodes are initially denoted by an ampersand (&) and thereafter referenced with an asterisk (*).

  • Nodes may be labeled with a type or tag using the exclamation point (!!) followed by a string, which can be expanded into a URI.

  • YAML documents in a stream may be preceded by 'directives' composed of a percent sign (%) followed by a name and space-delimited parameters. Two directives are defined in YAML 1.1:

    • The %YAML directive is used for identifying the version of YAML in a given document.
    • The %TAG directive is used as a shortcut for URI prefixes. These shortcuts may then be used in node type tags.
  • Two additional sigil characters are reserved in YAML for possible future specification: the at sign (@) and backtick (`).

see more about .yml

Change console colors

The way to change console colors today works as follows: The user writes the name of the color.
The suggestion would be to change to hexadecimal, so that the color palette gets bigger.

Freq refactoring

Consider refactoring the Freq class by adding checks and conversion to dict in the constructor.

Add tokenizer datatools

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

add base64 convert to Filetools

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

Reversed items on File.insert function

  • Version: 1.1.0
  • Platform: all

The File.insert added data reversed.
e.g:

file_instance.insert(5,[“I like cereja!”, “And you?”]

file.content_file

[...,“And you?”, “I like cereja!”, ...]

Format Progress with only two digits

  • Version: 1.1.0

Currently, the ProgressBar is returning percentage value with large numbers, see the image below:

image

It's cool maintaining the progress bar with two digits:

current: 3.9012......%
sugestion: 03.90%

Prevent data loss

Is your feature request related to a problem? Please describe.

risk of data loss

Describe the solution you'd like

1 - Do not overwrite an existing file without prior notice.

2 - Store instance change history

Describe alternatives you've considered

1 - Throw error if the file already exists for the indicated path, but allow kwargs auto-overrode, when to save a file, except when the instance comes from File.read (just alert the user, that file will be overwritten).

2 - Save copy for each change in a list (must be a private attribute), analyze the copy limit.
e.g. sample:

_changes = [instance_copy]

Create dict relationship

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

Need to improve the documentation

Is your feature request related to a problem? Please describe.

Yes, documentation is essential!

Describe the solution you'd like

I think it would be interesting to add some examples of using Cereja in the readme. Some modules and functions are not well documented. The Jupyter Notebook needs to be updated, that is, it is necessary to add the use of some tools.

FileIO bugs

  • Version: 1.5.4
  • Platform: all
  • Subsystem: file
import cereja as cj

# Bug 1
file = cj.FileIO.create('./test.txt')
file[0] = 'line1'
file[1] = 'line2' # Raise exception IndexError: list assignment index out of range

# Bug 2
print(file.path) # /test.txt
file.set_path('./test2.txt')
file.undo() # isn't reset path altered
print(file.path) # /test2.txt

Fix thread never die (only Colab)

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
when an exception occurs the thread that controls the console and progress does not die.

limit n_lines sysout

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

add list_dir with filters to class Path

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

phrase frequency by words

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

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.