semvec/pypi-packages huggingface dataset:
transencoding 0.1.0
Convert encoding of given file from one encoding to another.
License: MIT
Keywords: transencoding

transencoding
=============

Convert encoding of given file from one encoding to another.

Install
-------

::

    pip install transencoding


Usage
-----

::

    E:\transencoding>python transencoding.py --help
    Usage: transencoding.py [OPTIONS] [INPUT]

    Options:
    -f, --from-code TEXT  Encoding of original text  [required]
    -t, --to-code TEXT    encoding for output  [required]
    -o, --output TEXT     output file
    --help                Show this message and exit.

Example
-------


将utf8.txt中的utf8编码的文本转化为gbk编码，并保存到gbk.txt文件中。

::

    E:\transencoding>python transencoding.py -f utf8 -t gbk utf8.txt > gbk.txt
chuck-says 0.1.1
Cowsay Chuck Norris Facts
License: MIT
Requires Python: >=3.7,<4.0
Keywords: chuck,chuck norris,cowsay,fortune

# Chuck Norris Facts, right in your terminal!

Because, who wouldn't want that? You better...

Get your day started as soon you see that sweet Chuck Norris fact of the day in your terminal; there's more than 600+ facts here, baby!
They're all real... allegedly.

_This package was completely made to write a blog post. It's not meant to be a 'real' project. It's fun though._
_You can check out the post at: https://codingdose.info/2019/06/08/create-a-project-page-for-your-repositories-easily-with-Jekyll/_

# Installation and Usage

Install this package right now before Chuck installs his foot on your face.
```bash
$ pip install --user chuck-says
```

Worried about how to execute it before Chuck executes you? Just call **Chuck**!

```
# Automatically add Cowsay
$ chuck
  ________________________________________
/ Chuck Norris doesn't need a debugger, he \
| just stares down the bug until the code  |
\ confesses.                               /
  ----------------------------------------
         \   ^__^
          \  (oo)\_______
             (__)\       )\/\
                 ||----w |
                 ||     ||

# Output fact only if you want to integrate it with another 'cow'
$ chuck -n | cowsay -f eyes
 _______________________________________
/ Chuck Norris has never won an Academy \
| Award for acting... because he's not  |
\ acting.                               /
 ---------------------------------------
    \
     \
                                   .::!!!!!!!:.
  .!!!!!:.                        .:!!!!!!!!!!!!
  ~~~~!!!!!!.                 .:!!!!!!!!!UWWW$$$
      :$$NWX!!:           .:!!!!!!XUWW$$$$$$$$$P
      $$$$$##WX!:      .<!!!!UW$$$$"  $$$$$$$$#
      $$$$$  $$$UX   :!!UW$$$$$$$$$   4$$$$$*
      ^$$$B  $$$$\     $$$$$$$$$$$$   d$$R"
        "*$bd$$$$      '*$$$$$$$$$$$o+#"
             """"          """""""
```

To have a fun fact whenever you open your terminal just edit your shell configuration file.
For Bash:
```bash
echo chuck >> ~/.bashrc
```

For Fish:
```fish
# Edit your fish_greeting function
~ function fish_greeting
             chuck
  end

# And save it
~ funcsave fish_greeting
```

# Collaboration

Want to add a fact? Are you a first timer and want to make your first pull request? Is my coding style a piece of garbage that makes your eyes bleed? Fear not!
1. Get that fork going, boy.
2. Make your changes in the **develop** branch.
3. Make a pull request including your changes.

Boom, your done, get that approved pull request into your CV right now goddammit.

# How it works

Who the hell knows? I just made this yesterday.

-------------

![chuck -n | cowsay -f dragon | lolcat -t -a -s 120](chuck_animated.gif)
xalc 0.6.0
Hexadecimal calculator
License: MIT

.. -*- rst -*-

Xalc
====

Xalc is a hexadecimal calculator for embedded systems programmers, implemented
as a pre-processor for Python expressions, with a console interface based on
IPython.

Features:

- Mixed calculations with hex, decimal, binary and binary prefix literals
- Support for undecorated hex literals.  Ambiguous literals can be forced to hex by either prefixing or suffixing with 'x'.
- Display in hex, decimal, binary (with bit position ruler) and binary prefixes (sizes)
- Simple bit mask construction
- Bit field extraction operator
- From IPython: Support for arbitrary Python expressions (minus the ones that conflict with the pre-processed syntax), command history, access to previous results with _* variables, etc.

The following "screenshot" demonstrates some of the features of Xalc.  The real
program displays the different bases in different colors, if your console
supports that::

 $ xalc
 In [1]: deadbeef
 0xdeadbeef
 Out[1]:
 3735928559    │  28─╮ 24─╮ 20─╮ 16─╮ 12─╮  8─╮  4─╮  0─╮
 0xdeadbeef    │  1101 1110 1010 1101 1011 1110 1110 1111
 3 Gi + 490 Mi + 879 Ki + 751

 In [2]: deadbeef $ m5t13
 0xdeadbeef >> 5 & ((0x3fe0) >> 5)
 Out[2]:
  503           │  28─╮ 24─╮ 20─╮ 16─╮ 12─╮  8─╮  4─╮  0─╮
  0x000001f7    │  0000 0000 0000 0000 0000 0001 1111 0111

 In [3]: _ ^ cafe
 _ ^ 0xcafe
 Out[3]:
  51977         │  28─╮ 24─╮ 20─╮ 16─╮ 12─╮  8─╮  4─╮  0─╮
  0x0000cb09    │  0000 0000 0000 0000 1100 1011 0000 1001
  50 Ki + 777

 In [4]: 7f000000 - 35000000x
 0x7f000000 - 0x35000000
 Out[4]:
  1241513984    │  28─╮ 24─╮ 20─╮ 16─╮ 12─╮  8─╮  4─╮  0─╮
  0x4a000000    │  0100 1010 0000 0000 0000 0000 0000 0000
  1 Gi + 160 Mi

 In [5]: m2p0_5_8t9_29_31t31
 (0x3|0x20|0x300|0x20000000|0x80000000)
 Out[5]:
  2684355363    │  28─╮ 24─╮ 20─╮ 16─╮ 12─╮  8─╮  4─╮  0─╮
  0xa0000323    │  1010 0000 0000 0000 0000 0011 0010 0011
  2 Gi + 512 Mi + 803

 In [6]: 2g | m12
 0x80000000 | (0x1000)
 Out[6]:
  2147487744    │  28─╮ 24─╮ 20─╮ 16─╮ 12─╮  8─╮  4─╮  0─╮
  0x80001000    │  1000 0000 0000 0000 0001 0000 0000 0000
  2 Gi + 4 Ki

 In [7]: -45
 -45
 Out[7]:
  -45           │  28─╮ 24─╮ 20─╮ 16─╮ 12─╮  8─╮  4─╮  0─╮
  0xffffffd3    │  1111 1111 1111 1111 1111 1111 1101 0011

Install with pip::

    pip install --upgrade xalc

Or by cloning the `git repo <https://github.com/rabinv/xalc>`_ and running::

    python setup.py install

Run ``xalc`` after installation.
tgext.debugbar 0.5.0
Provides debug toolbar for TurboGears2
License: MIT
Keywords: turbogears2.widgets

About Debug Toolbar
-------------------------

tgext.debugbar provides a Debug Toolbar for TurboGears2 framework.

Exposed sections are:

* Controller and Rendering time reporting
* Controller Profiling
* Request Parameters, Headers, Attributes and Environ
* SQLAlchemy Queries reporting and timing
* Explain and Show result of performed SQLAlchemy queries
* List mounted controllers, their path and exposed methods
* Log Messages

Installing
-------------------------------

tgext.debugbar can be installed both from pypi or from bitbucket::

    easy_install tgext.debugbar

should just work for most of the users

Using it with Pluggables
----------------------------------

Like any other pluggable extension, the debugbar can be
activated through the pluggables interface inside
your ``app_cfg.py``::

    from tgext.pluggable import plug
    plug(base_config, 'tgext.debugbar')

The debugbar will then check for the ``debug`` config option
disabling itself when it is false.

Using it without pluggable
----------------------------------

While the pluggables interface makes convenient to
pass options to the debugbar, you might want to avoid
using it for various reasons. In such cases you can
enable the debugbar by adding the following
lines to your project ``app_cfg.py``::

    from tgext.debugbar import enable_debugbar
    enable_debugbar(base_config)

Enabling Logs
-----------------------------------

Whenever your response is JSON or an ajax request, or any other
kind of content which is not a plain HTML page, the debugbar bar
is not injected inside your response.
This is to prevent it from messing with your output when it would
probably break things.

There are cases when you might be interested in getting access
to some informations from the debugbar even when your output
is not HTML. For example your might be interested in knowing
which queries have been performed to retrieve your JSON response.

To enable logging such informations you can pass the ``enable_logs=True``
option to the ``plug`` call which activates the debugbar.

Inventing Mode
-------------------------------------

The DebugBar provides the inventing mode, such feature is inspired
by the *Inventing On Principle* to speed up experimenting and prototyping
with your website. Whenever the inventing mode is enable your web page
will automatically update when you change it, being it a controller, template
or css change.

The inventing mode can be enabled by passing the ``inventing=True``
option to the ``plug`` call which activates the debugbar.

If you want to disable inventing mode for CSS files, you can enable the
inventing mode and then pass the ``inventing_css=False`` option.