cereja-project / cereja Goto Github PK
View Code? Open in Web Editor NEWCereja is a bundle of useful functions we don't want to rewrite and .. just pure fun!
License: MIT License
Cereja is a bundle of useful functions we don't want to rewrite and .. just pure fun!
License: MIT License
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.
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!”, ...]
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.
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.
Strings (scalars) are ordinarily unquoted, but may be enclosed in double-quotes ("), or single-quotes (').
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 (---).
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:
Two additional sigil characters are reserved in YAML for possible future specification: the at sign (@) and backtick (`).
see more about .yml
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.
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
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.
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.
utils.group_items_in_batches([1,2,3,4],3)
[[1, 2, 3], [4]]
current:
Isn't possible. You can sub with string, integer or Unicode types
to:
Isn't possible. You can sub with integer type
https://github.com/jlsneto/cereja/blob/650b614286101834bb613dfc4e557a7cd99005b6/cereja/unicode.py#L75
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.
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]
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.
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.
Is your feature request related to a problem? Please describe.
I need group items by columns and more more more.
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.
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 improve.
https://github.com/jlsneto/cereja/blob/d33ca855c67f67120f8ba730d6ed454832af4afc/cereja/display.py#L386
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.
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.
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.
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.
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
Consider refactoring the Freq class by adding checks and conversion to dict in the constructor.
Param ext default None
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.