Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d3a59d

Browse files
committed
hello
0 parents  commit 7d3a59d

9 files changed

Lines changed: 41 additions & 0 deletions

File tree

.DS_Store

15 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vin_readme.txt

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# pymem
2+
3+
inspect memory footprint of python objects.
4+
5+
## install
6+
```
7+
git clone github.com/mynameisvinn/pymem
8+
cd pymem
9+
python setup.py install
10+
```
11+
12+
## usage
13+
>>> from pymem import get_size
14+
>>> x = '1234567'
15+
>>> deep_getsizeof(x, set()) # prints 44 bytes
16+
```

pymem/.DS_Store

6 KB
Binary file not shown.

pymem/__init__.py

Whitespace-only changes.

pymem/__init__.pyc

110 Bytes
Binary file not shown.

pymem/foo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import numpy
2+
3+
def print_array():
4+
a = numpy.array([1,2])
5+
print a
6+

pymem/foo.pyc

309 Bytes
Binary file not shown.

setup.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from distutils.core import setup
2+
3+
setup(
4+
name="vin's lirbary",
5+
version="0.1.0",
6+
packages=["vin_library"], # source code folder
7+
8+
# Include additional files into the package
9+
include_package_data=True,
10+
11+
# Details
12+
url="http://pypi.python.org/pypi/MyApplication_v010/",
13+
14+
# Dependent packages (distributions)
15+
install_requires=[
16+
"numpy",
17+
],
18+
)

0 commit comments

Comments
 (0)