semvec/pypi-packages huggingface dataset:
cu-astr2600 0.11.0
A collection of toys and tools for ASTR2600 at CU Boulder.
License: MIT

# cu-astr2600
A collection of toys and tools for ASTR2600: Introduction to Scientific Computing at the University of Colorado Boulder.

## Installation
If you're working on the `scorpius` computers at SBO, you should be able to access these by default, or if necessary by running `source henrietta` from a UNIX prompt.

If you're working on your own computer, you should be able to install this by running
```
pip install cu-astr2600
```
from a UNIX prompt. As we add more code to this package, you may need to upgrade the version that is installed on your computer. To upgrade, run
```
pip install cu-astr2600 --upgrade
```
instead. That will make sure it always grabs the latest version of the code.

If you want to be able to modify the code yourself, please also feel free to fork/clone this repository onto your own computer and install directly from that editable package. For example, this might look like:
```
git clone https://github.com/zkbt/cu-astr2600.git
cd cu-astr2600/
pip install -e .
```
This will link the installed version of the `astr2600` package to your local repository. Changes you make to the code in the repository should be reflected in the version Python sees when it tries to `import astr2600`.

## Contributors

This package was written by [Zach Berta-Thompson](https://github.com/zkbt).
xxkcd 1.4.0
An (unofficial) Python wrapper around xkcd APIs
License: MIT
Keywords: xkcd,api,wrapper,what-if

xxkcd
=====

An (unofficial) Python wrapper around xkcd APIs

Python 2 and 3 compatible. Requires an internet connection.

Examples
--------

For full usage, see the
`wiki <https://github.com/mitalashok/xxkcd/wiki>`__.

.. code:: python

    >>> from xxkcd import xkcd, WhatIf
    >>> x = xkcd(353)
    >>> x
    xkcd(353)
    >>> print(x.transcript)
    [[ Guy 1 is talking to Guy 2, who is floating in the sky ]]
    Guy 1: You're flying! How?
    Guy 2: Python!
    Guy 2: I learned it last night! Everything is so simple!
    Guy 2: Hello world is just 'print "Hello, World!" '
    Guy 1: I dunno... Dynamic typing? Whitespace?
    Guy 2: Come join us! Programming is fun again! It's a whole new world up here!
    Guy 1: But how are you flying?
    Guy 2: I just typed 'import antigravity'
    Guy 1: That's it?
    Guy 2: ...I also sampled everything in the medicine cabinet for comparison.
    Guy 2: But i think this is the python.
    {{ I wrote 20 short programs in Python yesterday.  It was wonderful.  Perl, I'm leaving you. }}
    >>> print(x.title)
    Python
    >>> print(x.alt)
    I wrote 20 short programs in Python yesterday.  It was wonderful.  Perl, I'm leaving you.
    >>> what_if = WhatIf(1)
    >>> print(what_if.title)
    Relativistic Baseball
    >>> print(what_if.question)
    What would happen if you tried to hit a baseball pitched at 90% the speed of light?
    >>> print(what_if.attribute)
    - Ellen McManis

.. code:: python

    from xxkcd import xkcd, WhatIf
    # Get random comic
    xkcd.random()

    # Get number of latest comic
    xkcd.latest()

    # Get random What If? article
    WhatIf.random()

    # Get number of latest What If? article
    WhatIf.latest()

Installing
----------

From `PyPI <https://pypi.org/project/xxkcd/>`__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: bash

    $ pip install xxkcd

From source
~~~~~~~~~~~

.. code:: bash

    $ git clone 'https://github.com/MitalAshok/xxkcd.git'
    $ python ./xxkcd/setup.py install